import type { CmdKey } from '@milkdown/core'; import type { Ctx } from '@milkdown/ctx'; type InferParams = T extends CmdKey ? U : never; export declare function callCommand>(slice: string, payload?: InferParams): (ctx: Ctx) => boolean; export declare function callCommand(slice: CmdKey, payload?: T): (ctx: Ctx) => boolean; export declare function callCommand(slice: string | CmdKey, payload?: any): (ctx: Ctx) => boolean; export {}; //# sourceMappingURL=call-command.d.ts.map