/** * Prompt recall history for the composer (INPUT-006, V2-043). * * Mirrors the classic REPL's history/draft semantics (`src/tui/App.tsx`) as a * standalone, renderer-independent class: consecutive duplicates are not * re-recorded, an in-progress draft is preserved while browsing history, and * moving past the newest entry restores that draft rather than blanking it. */ export declare class PromptHistory { private readonly entries; private cursor; private draft; push(text: string): void; get size(): number; /** Move to the previous (older) entry, saving `currentValue` as the draft. */ prev(currentValue: string): string | undefined; /** Move to the next (newer) entry, or restore the saved draft past the end. */ next(): string | undefined; /** Reset browsing state, e.g. after a submit or an explicit edit. */ reset(): void; isBrowsing(): boolean; }