import type { Cmd, CmdKey } from '@milkdown/core'; import type { Ctx, MilkdownPlugin } from '@milkdown/ctx'; export type $Command = MilkdownPlugin & { run: (payload?: T) => boolean; key: CmdKey; }; export declare function $command(key: K, cmd: (ctx: Ctx) => Cmd): $Command; export declare function $commandAsync(key: K, cmd: (ctx: Ctx) => Promise>, timerName?: string): import("./utils").WithTimer<$Command>; //# sourceMappingURL=$command.d.ts.map