import type { Focusable, TUI } from "@earendil-works/pi-tui";
import { Container } from "@earendil-works/pi-tui";
import type { Theme } from "../../../../modes/interactive/theme/theme.ts";
import type { HistoryEntry } from "./types.ts";
type HistorySearchTui = Pick<TUI, "requestRender">;
type HistorySearchOverlayOptions = {
    readonly tui: HistorySearchTui;
    readonly entries: readonly HistoryEntry[];
    readonly theme: Theme;
    readonly done: (entry: HistoryEntry | undefined) => void;
};
export declare class HistorySearchOverlay extends Container implements Focusable {
    private readonly searchInput;
    private readonly entriesByValue;
    private readonly options;
    private list;
    private filteredEntries;
    private _focused;
    constructor(options: HistorySearchOverlayOptions);
    get focused(): boolean;
    set focused(value: boolean);
    handleInput(input: string): void;
    getSearchValue(): string;
    getFilteredEntries(): readonly HistoryEntry[];
    private rebuild;
    private toSelectItem;
    private renderContainer;
}
export {};
//# sourceMappingURL=overlay.d.ts.map