/** * Function-key decoding for raw terminal input. * * Ink's `useInput` does not decode F1–F12, so the Input component catches the * raw escape sequences from stdin (the same mechanism it uses for Home/End) * and turns them into a `KeyEvent.fn` number. F-keys are terminal-safe aliases * for chords some terminals intercept before the app sees them — most notably * Windows Terminal, which binds Ctrl+F to "Find". * * Kept in its own pure, dependency-free module so it can be unit-tested without * importing the Ink/React component tree. */ /** * Map a raw terminal escape sequence to a plain function-key number (1–12), * or null when it isn't a plain F-key. Covers both the SS3 form (xterm F1–F4, * `ESC O P..S`) and the CSI `~` form used by F1–F12 across most terminals. * Modifier-augmented variants (Shift+F2 = `ESC [ 1 ; 2 Q`, etc.) are ignored. */ export declare function fnKey(data: string): number | null; //# sourceMappingURL=fn-keys.d.ts.map