import type { uint16 } from "../../types.ts"; import type { Reader } from "../binary/reader.ts"; /** Maximum profile table (version 0.5 - CFF) */ export interface MaxpTable05 { version: 0x00005000; numGlyphs: uint16; } /** Maximum profile table (version 1.0 - TrueType) */ export interface MaxpTable10 { version: 0x00010000; numGlyphs: uint16; maxPoints: uint16; maxContours: uint16; maxCompositePoints: uint16; maxCompositeContours: uint16; maxZones: uint16; maxTwilightPoints: uint16; maxStorage: uint16; maxFunctionDefs: uint16; maxInstructionDefs: uint16; maxStackElements: uint16; maxSizeOfInstructions: uint16; maxComponentElements: uint16; maxComponentDepth: uint16; } export type MaxpTable = MaxpTable05 | MaxpTable10; /** * Parse maxp table - maximum profile with glyph count and limits * @param reader - Reader positioned at start of maxp table * @returns Parsed maxp table (version 0.5 for CFF or 1.0 for TrueType) */ export declare function parseMaxp(reader: Reader): MaxpTable;