/** * A Cell represents a single "pixel" in the terminal. * It holds a character and its styling attributes. */ export type Color = "default" | "black" | "red" | "green" | "yellow" | "blue" | "magenta" | "cyan" | "white" | { rgb: readonly [number, number, number]; }; export interface Style { color?: Color; background?: Color; bold?: boolean; dim?: boolean; italic?: boolean; underline?: boolean; inverse?: boolean; strikethrough?: boolean; } export interface Cell { char: string; style: Style; } export declare const EMPTY_STYLE: Style; export declare const EMPTY_CELL: Cell; export declare function createCell(char: string, style?: Style): Cell; export declare function cellsEqual(a: Cell, b: Cell): boolean; export declare function stylesEqual(a: Style, b: Style): boolean; export declare function colorsEqual(a: Color | undefined, b: Color | undefined): boolean; //# sourceMappingURL=cell.d.ts.map