import { ByteArray } from '../../types.js'; import { FontDescriptor, TtfFontInfo, FontParser, FontFormat } from '../types.js'; /** * Parses WOFF (Web Open Font Format) files. * WOFF is a compressed wrapper around TTF/OTF fonts. */ export declare class WoffParser implements FontParser { private ttfParser; private fontData; constructor(woffData: ByteArray); /** * Gets the decompressed TTF/OTF font data. */ getFontData(): ByteArray; /** * Parses the font and returns basic font information. */ getFontInfo(): TtfFontInfo; /** * Creates a FontDescriptor suitable for embedding. */ getFontDescriptor(fontName?: string): FontDescriptor; /** * Gets character widths for a range of characters. */ getCharWidths(firstChar: number, lastChar: number): number[]; parseCmap(): Map; parseHmtx(): Map; private decompressWoff; } /** * Detects the font format from the file signature. */ export declare function detectFontFormat(data: ByteArray): FontFormat;