export interface Cell { char: string; width: 1 | 2; style: string; } export declare class ScreenBuffer { private width; private height; private front; private back; private _cursorX; private _cursorY; get cursorX(): number; get cursorY(): number; constructor(width: number, height: number); private createGrid; moveTo(x: number, y: number): void; write(text: string, style: string): void; clear(): void; resize(width: number, height: number): void; /** * Diff the back buffer against the front buffer and write only * the changed cells to output. Uses synchronized output to prevent * tearing. After flush, the front buffer matches the back buffer. */ flush(output: (s: string) => void): void; } //# sourceMappingURL=buffer.d.ts.map