import { PathSeg } from './content.js'; /** What an embedded Type 1 program says about its glyphs. */ export interface Type1Font { /** The contours of one glyph, by NAME — a Type 1 font indexes by nothing else. */ readonly path: (name: string) => Array | undefined; /** * Whether the program holds a glyph of that name at all. One it holds which * draws nothing is a BLANK glyph — a space — and not one it lacks. */ readonly has: (name: string) => boolean; /** The program's own `/Encoding`: code → glyph name, where it states one. */ readonly encoding?: ReadonlyMap; } /** * Read an embedded Type 1 program. * * @param program The raw `/FontFile` bytes — the cleartext header, the * `eexec`-encrypted body, and the trailing zeros. * @returns A reader, or `undefined` where the program cannot be read. */ export declare function type1Font(program: Uint8Array): Type1Font | undefined;