import opentype from 'opentype.js'; export type FontRef = opentype.Font; export declare function encodeGlyph(font: FontRef, ch: string): { bytes: Uint8Array; advance: number; }; export declare class GlyphCache { private font; private encodings; constructor(font: FontRef); get(ch: string): { bytes: Uint8Array; advance: number; }; }