import type { GlyphId, uint16 } from "../../types.ts"; import type { Reader } from "../binary/reader.ts"; /** * SVG table * Contains SVG documents for color glyph rendering */ export interface SvgTable { version: uint16; documentRecords: SvgDocumentRecord[]; } /** * SVG document record * Maps a range of glyphs to an SVG document */ export interface SvgDocumentRecord { startGlyphID: GlyphId; endGlyphID: GlyphId; svgDoc: string; } /** * Parse SVG table */ export declare function parseSvg(reader: Reader): SvgTable; /** * Get SVG document for a glyph * Returns null if no SVG exists for this glyph */ export declare function getSvgDocument(svg: SvgTable, glyphId: GlyphId): string | null; /** * Check if a glyph has an SVG representation */ export declare function hasSvgGlyph(svg: SvgTable, glyphId: GlyphId): boolean; /** * Get all glyph IDs that have SVG representations */ export declare function getSvgGlyphIds(svg: SvgTable): GlyphId[]; /** * Async version of gzip decompression */ export declare function decompressSvgDocument(data: Uint8Array): Promise;