type ParsedInputTrace = {
    kind?: string;
    sequence?: string;
    name?: string;
    ctrl?: boolean;
    meta?: boolean;
    option?: boolean;
    shift?: boolean;
    super?: boolean;
};
type InputEventTrace = {
    input: string;
    key: {
        ctrl: boolean;
        meta: boolean;
        shift: boolean;
        return: boolean;
        backspace: boolean;
        delete: boolean;
        tab: boolean;
        escape: boolean;
    };
};
export declare function isInputLatencyTraceEnabled(): boolean;
export declare function traceInputLatencyStdinChunk(chunk: string | Buffer): number | null;
export declare function traceInputLatencyParsedKeys(inputSeqForChunk: number | null, keys: ParsedInputTrace[]): void;
export declare function traceInputLatencyInputEvent(event: InputEventTrace): void;
export declare function traceInputLatencyCheckpoint(type: string, data?: Record<string, unknown>): void;
export declare function traceInputLatencyWriteComplete(meta: {
    bytes: number;
    patches: number;
    optimizedPatches: number;
    frameDurationMs: number;
    writeCallbackMs: number;
    altScreen: boolean;
    targetMoved: boolean;
    yogaVisited: number;
    yogaMeasured: number;
}): void;
export {};
