import type { Theme } from "@earendil-works/pi-coding-agent";
import type { BrowseState } from "../state/model.js";
import type { InputResult, Screen } from "./types.js";
/**
 * Render an ISO timestamp in LOCAL time (YYYY-MM-DD HH:MM) for easy
 * identification — archived startedAt values are UTC ISO strings, but the
 * person scanning the table thinks in wall-clock time. Falls back to the
 * raw UTC slice when the value doesn't parse.
 */
export declare function fmtLocalTime(iso: string): string;
/** Windowed slice of rows around the cursor (same shape as config-tui's windowList). */
export declare function windowRows<T>(items: T[], cursorIndex: number, maxRows?: number): {
    visible: T[];
    start: number;
    aboveCount: number;
    belowCount: number;
};
export declare class BrowseScreen implements Screen {
    render(state: BrowseState, width: number, theme: Theme): string[];
    handleInput(data: string, state: BrowseState): InputResult;
}
