import { ByteArray } from '../../types.js'; import { FontFormat, FontParser } from '../types.js'; /** * Parses font files of various formats (TTF, OTF, WOFF). * Automatically detects the format and returns the appropriate parser. * * @example * ```typescript * const fontData = readFileSync('myfont.woff') * const parser = parseFont(fontData) * const descriptor = parser.getFontDescriptor() * ``` */ export declare function parseFont(data: ByteArray): FontParser; /** * Checks if a font format is supported. */ export declare function isSupportedFontFormat(format: string): format is FontFormat;