import type { BindingId } from './catalog.js'; import type { BindingResolution } from './types.js'; export declare function formatStroke(stroke: string): string; export declare function formatGesture(gesture: string): string; export declare function formatBinding(bindingSet: BindingResolution, id: BindingId): string; export interface RawTerminalInput { readonly input?: string; readonly upArrow?: boolean; readonly downArrow?: boolean; readonly leftArrow?: boolean; readonly rightArrow?: boolean; readonly return?: boolean; readonly escape?: boolean; readonly ctrl?: boolean; readonly meta?: boolean; readonly shift?: boolean; readonly tab?: boolean; readonly shiftTab?: boolean; readonly backspace?: boolean; readonly delete?: boolean; readonly pageUp?: boolean; readonly pageDown?: boolean; readonly home?: boolean; readonly end?: boolean; } export declare function canonicalTerminalStroke(raw: RawTerminalInput): string | null; export declare function matchesTerminalInput(bindingSet: BindingResolution, id: BindingId, raw: RawTerminalInput): boolean; export type PiTuiMatcher = (input: Input, gesture: string) => boolean; export declare function matchesPiTuiInput(bindingSet: BindingResolution, id: BindingId, input: Input, matchesKey: PiTuiMatcher): boolean;