/** * Key code definitions for keyboard input. */ export interface KeyDefinition { key: string; code: string; keyCode: number; text?: string; location?: number; shiftKey?: string; shiftKeyCode?: number; shiftText?: string; } /** * Modifier key flags */ export declare const Modifiers: { readonly None: 0; readonly Alt: 1; readonly Control: 2; readonly Meta: 4; readonly Shift: 8; }; /** * Key definitions for common keys. */ export declare const Keys: Record; /** * Get key definition from a key name. * Supports both key names (Enter, Shift) and single characters. */ export declare function getKeyDefinition(key: string): KeyDefinition | null; /** * Parse a key combination string like "Control+Shift+A". */ export declare function parseKeyCombination(combo: string): { modifiers: number; key: KeyDefinition | null; }; /** * Get key definition with shift applied if needed. * When shiftPressed is true and the key has a shift variant, * returns a modified definition with the shifted key/text. */ export declare function getKeyDefinitionWithShift(key: string, shiftPressed: boolean): KeyDefinition | null; /** * Reverse lookup: find key definition from a character. * Used for typing shifted characters like '!' or 'A'. * Returns the base key definition and whether shift is needed. */ export declare function getKeyDefinitionFromChar(char: string): { definition: KeyDefinition; needsShift: boolean; } | null; //# sourceMappingURL=keys.d.ts.map