import { ViewerState } from "./types.js";
import type { KeyEvent } from "../tui/input/types.js";
export type ViewerCommand = {
    kind: "search";
} | {
    kind: "copy";
} | {
    kind: "toggleFollow";
};
export type HandleKeyResult = {
    state: ViewerState;
    command?: ViewerCommand;
};
export declare function handleKeyEx(state: ViewerState, event: KeyEvent): HandleKeyResult;
export declare function handleKey(state: ViewerState, event: KeyEvent): ViewerState;
