import type { Terminal } from "@nerf/pi-tui";
export interface RemoteTerminalOptions {
    onWrite: (data: string) => void;
    initialColumns?: number;
    initialRows?: number;
}
/**
 * Browser-backed terminal transport for the bridge-hosted native TUI.
 * It implements the pi-tui Terminal contract but forwards output over the
 * RPC bridge instead of writing to process stdout.
 */
export declare class RemoteTerminal implements Terminal {
    private readonly options;
    private inputHandler?;
    private resizeHandler?;
    private _columns;
    private _rows;
    constructor(options: RemoteTerminalOptions);
    start(onInput: (data: string) => void, onResize: () => void): void;
    stop(): void;
    drainInput(): Promise<void>;
    write(data: string): void;
    get columns(): number;
    get rows(): number;
    get kittyProtocolActive(): boolean;
    pushInput(data: string): void;
    resize(columns: number, rows: number): void;
    moveBy(lines: number): void;
    hideCursor(): void;
    showCursor(): void;
    clearLine(): void;
    clearFromCursor(): void;
    clearScreen(): void;
    setTitle(title: string): void;
}
//# sourceMappingURL=remote-terminal.d.ts.map