import { Framebuffer } from "./framebuffer"; export declare enum BitDirection { LE = 0, BE = 1 } export interface GlyphBoxData { xOffset: number; yOffset: number; boxWidth: number; boxHeight: number; data: number[]; } export declare class Glyph { data: Uint8Array; width: number; height: number; constructor(data: Uint8Array, width: number, height: number); identity(): string; get rawHex(): string; debug(joiner?: string): string; getPixel(x: number, y: number): boolean; setPixel(x: number, y: number): void; draw(fb: Framebuffer, fgColor: number, bgColor: number): void; scale(factor: number): Glyph; packIntoRows(direction?: BitDirection): number[]; packIntoPackedRows(direction?: BitDirection): GlyphBoxData; packIntoColumns(direction?: BitDirection): number[]; static fromFramebuffer(fb: Framebuffer, isMonospace: boolean, pad?: number): Glyph; static fromRowsBox(rows: number[], rowWidth: number, direction: BitDirection | undefined, width: number, height: number, xOffset: number, yOffset: number): Glyph; static fromRows(rows: number[], rowWidth: number, direction?: BitDirection): Glyph; static fromPackedRowsBox(rows: number[], boxWidth: number, boxHeight: number, direction: BitDirection | undefined, width: number, height: number, xOffset: number, yOffset: number): Glyph; static fromColumns(columns: number[], height: number, direction?: BitDirection): Glyph; }