import type { TerminalHistory } from '../types'; export declare class InputHistoryManager implements TerminalHistory { private history; private currentIndex; private currentInput; add(command: string): void; get(index: number): string | undefined; getPrevious(): string | undefined; getNext(): string | undefined; search(query: string): string[]; getAll(): string[]; reset(): void; setCurrentInput(input: string): void; } export declare class InputHandler { private inputElement; private history; private onSubmit; private onAutocomplete?; private onInterrupt?; private onTyping?; private lastSuggestions; private suggestionIndex; constructor(inputElement: HTMLInputElement, onSubmit: (input: string) => void, onAutocomplete?: (input: string, cursorPos: number) => Promise<{ suggestions: string[]; replacement: string; }>, onInterrupt?: () => void, onTyping?: () => void); private setupEventListeners; private handleKeyDown; private handleSubmit; private handleHistoryUp; private handleHistoryDown; private handleAutocomplete; private findCommonPrefix; private deleteWord; private handleInterrupt; private handleClear; focus(): void; getHistory(): InputHistoryManager; } //# sourceMappingURL=InputHandler.d.ts.map