import { ScreenCell } from './types';
export declare class TerminalEmulator {
    private terminal;
    private _dirty;
    private disposed;
    constructor(cols: number, rows: number, scrollback?: number);
    write(data: string): void;
    consumeDirty(): boolean;
    markDirty(): void;
    resize(cols: number, rows: number): void;
    getCell(row: number, col: number): ScreenCell;
    getCursor(): {
        x: number;
        y: number;
    };
    getRow(row: number): ScreenCell[];
    scrollUp(lines?: number): void;
    scrollDown(lines?: number): void;
    scrollToBottom(): void;
    get isScrolledBack(): boolean;
    get cols(): number;
    get rows(): number;
    dispose(): void;
    private extractColor;
    private emptyCell;
}
