import { ToolType } from '../types/annotation.types'; /** A resolved editor action from a keyboard event. */ export type ShortcutAction = { type: 'tool'; tool: ToolType; } | { type: 'fit'; } | { type: 'zoomIn'; } | { type: 'zoomOut'; } | { type: 'delete'; } | { type: 'undo'; } | { type: 'redo'; } | { type: 'panOn'; } | { type: 'panOff'; }; /** Digit → tool mapping (1–9), matching the toolbar order (Freehand first). */ export declare const TOOL_KEYS: ToolType[]; interface KeyLike { key: string; type: string; ctrlKey: boolean; metaKey: boolean; shiftKey: boolean; } /** * Pure mapping from a keyboard event to an editor action (or null). Ctrl/Cmd * combos resolve to undo/redo (Ctrl+Z, Ctrl+Y / Ctrl+Shift+Z); other modifier * combos return null. Space is press-and-hold pan: keydown → panOn, * keyup → panOff. */ export declare function resolveShortcut(e: KeyLike): ShortcutAction | null; export {}; //# sourceMappingURL=keyboard.d.ts.map