/**
 * KeypressContext
 *
 * Provides keyboard input handling by reading stdin directly.
 * Filters out mouse events before broadcasting to subscribers.
 *
 * This replaces Ink's useInput hook with a custom implementation that:
 * 1. Reads stdin directly for full control over escape sequence parsing
 * 2. Filters out mouse events so they don't interfere with keyboard handlers
 * 3. Handles paste buffering and backslash+enter detection
 */
import type React from 'react';
export declare const BACKSLASH_ENTER_TIMEOUT = 5;
export declare const ESC_TIMEOUT = 50;
export declare const PASTE_TIMEOUT = 30000;
export interface Key {
    name: string;
    ctrl: boolean;
    meta: boolean;
    shift: boolean;
    paste: boolean;
    insertable: boolean;
    sequence: string;
}
export type KeypressHandler = (key: Key) => void;
interface KeypressContextValue {
    subscribe: (handler: KeypressHandler) => void;
    unsubscribe: (handler: KeypressHandler) => void;
}
export declare function useKeypressContext(): KeypressContextValue;
export interface KeypressProviderProps {
    children: React.ReactNode;
}
export declare function KeypressProvider({ children }: KeypressProviderProps): import("react/jsx-runtime").JSX.Element;
export {};
//# sourceMappingURL=KeypressContext.d.ts.map