import type { VRange } from '../types.js'; import type { VEditor } from '../virgo.js'; export declare const VKEYBOARD_PREVENT_DEFAULT = false; export declare const VKEYBOARD_ALLOW_DEFAULT = true; export interface VKeyboardBinding { key: number | string | string[]; handler: VKeyboardBindingHandler; prefix?: RegExp; suffix?: RegExp; shortKey?: boolean; shiftKey?: boolean; altKey?: boolean; metaKey?: boolean; ctrlKey?: boolean; } export type VKeyboardBindingRecord = Record; export interface VKeyboardBindingContext { vRange: VRange; vEditor: VEditor; collapsed: boolean; prefixText: string; suffixText: string; raw: KeyboardEvent; } export type VKeyboardBindingHandler = (context: VKeyboardBindingContext) => typeof VKEYBOARD_PREVENT_DEFAULT | typeof VKEYBOARD_ALLOW_DEFAULT; export declare function createVirgoKeyDownHandler(vEditor: VEditor, bindings: VKeyboardBindingRecord): (evt: KeyboardEvent) => void; //# sourceMappingURL=keyboard.d.ts.map