import { TerminalConfig } from './types';
export type { TerminalConfig } from './types';
export declare class Terminal {
    private readonly id;
    private readonly container;
    private readonly config;
    private readonly prompt;
    private readonly maxHistory;
    private readonly maxLines;
    private outputEl;
    private inputEl;
    /** Command history ring buffer */
    private readonly history;
    private historyIndex;
    private currentInput;
    /** Output line buffer */
    private readonly lines;
    /** Whether we are currently processing a command */
    private processing;
    constructor(config: TerminalConfig);
    /** Write text to the output area (no trailing newline) */
    write(text: string): void;
    /** Write text to the output area with a trailing newline */
    writeLine(text: string): void;
    /** Write error text to the output area */
    writeError(text: string): void;
    /** Clear all output lines */
    clear(): void;
    /** Focus the input field */
    focus(): void;
    /** Clean up the component and remove from DOM */
    destroy(): void;
    /** Create the main DOM structure */
    private render;
    /** Re-render the output lines */
    private renderOutput;
    /** Add a line to the output buffer and render it */
    private addLine;
    /** Auto-scroll output to the bottom */
    private scrollToBottom;
    /** Focus the input element */
    private focusInput;
    /** Handle keydown events on the input */
    private handleInputKeyDown;
    /** Submit the current command */
    private submitCommand;
    /** Push a command to the history buffer */
    private pushHistory;
    /** Navigate through command history */
    private navigateHistory;
    /** Enable or disable the input element */
    private setInputDisabled;
}
//# sourceMappingURL=index.d.ts.map