export interface KeySpec { key: string; code: string; keyCode: number; text?: string; } /** CDP `modifiers` bitmask values. */ export declare const MODIFIER_BITS: { readonly Alt: 1; readonly Control: 2; readonly Meta: 4; readonly Shift: 8; }; export type ModifierKey = keyof typeof MODIFIER_BITS; /** Key names agents may pass to a press action, with their CDP codes. */ export declare const KEY_SPECS: Record; /** Resolves a key name in any common spelling (DOM, xdotool, short forms) * to its canonical DOM key name. Single characters pass through. */ export declare function normalizeKeyName(name: string): string; export declare function keySpecFor(name: string): KeySpec; export interface Chord { modifiers: ModifierKey[]; key: KeySpec | null; } /** Parses "ctrl+shift+a", "Control+C", "Return" or ["Control", "C"] into one chord. * A chord made only of modifiers (e.g. "shift") has `key` null. */ export declare function parseChord(input: string | string[]): Chord; export declare function modifierMask(modifiers: Iterable): number; //# sourceMappingURL=keys.d.ts.map