type OnNewHistoryEntry = (entry: string) => void;
export declare class InputQueueManager {
    private stack;
    private static instance;
    private static rl;
    private static keypressListenerSetup;
    private lastKeypressWasTab;
    private currentLine;
    private pasteBuffer;
    private pasteTimeout;
    private readonly PASTE_DELAY_MS;
    private historyIndex;
    private savedLineBeforeHistory;
    private onNewEntry?;
    constructor();
    setOnNewEntry(callback: OnNewHistoryEntry | undefined): void;
    private ensureRl;
    private flushPasteBuffer;
    ask(question: string, options?: string[], history?: string[]): Promise<string>;
    private peek;
    private syncFromReadline;
    private sanitizeHistoryEntry;
    private getHistory;
    private handleTabCompletion;
    private render;
    private renderTopOrClose;
    private replaceLine;
    private longestCommonPrefix;
    private close;
}
export {};
