import type { Theme } from "@earendil-works/pi-coding-agent";
import type { BrowseAction, BrowseState } from "../state/model.js";
export type InputResult = {
    kind: "consumed";
} | {
    kind: "no-op";
} | {
    kind: "dispatch";
    action: BrowseAction;
} | {
    kind: "dispatch-seq";
    actions: BrowseAction[];
} | {
    kind: "quit";
} | {
    kind: "error";
    message: string;
};
export interface Screen {
    render(state: BrowseState, width: number, theme: Theme): string[];
    handleInput(data: string, state: BrowseState): InputResult;
}
