import type { TuiRenderMode } from "./model.js";
export interface TerminalFrameRendererOptions {
    mode?: TuiRenderMode;
    height?: number;
    write?: (chunk: string) => void;
    clear?: () => void;
}
export declare class TerminalFrameRenderer {
    private prevLines;
    mode: TuiRenderMode;
    height?: number;
    private readonly write;
    private readonly clearFrame;
    constructor(mode?: TuiRenderMode, height?: number);
    constructor(options: TerminalFrameRendererOptions);
    render(frame: string): void;
    clear(): void;
}
export declare function clearTerminalScreen(write?: (chunk: string) => void): void;
