import type { Ctx, SliceType } from '@milkdown/ctx'; import type { Command } from '@milkdown/prose/state'; import type { $Ctx } from '../$ctx'; import type { $Shortcut, Keymap } from '../$shortcut'; export type KeymapConfig = Record; export interface KeymapItem { shortcuts: string | string[]; command: (ctx: Ctx) => Command; } export type UserKeymapConfig = Record; export type $UserKeymap = [$Ctx, `${N}Keymap`>, $Shortcut] & { key: SliceType, `${N}Keymap`>; keymap: Keymap; ctx: $Ctx, `${N}Keymap`>; shortcuts: $Shortcut; }; export declare function $useKeymap(name: N, userKeymap: UserKeymapConfig): $UserKeymap; //# sourceMappingURL=$user-keymap.d.ts.map