/** * Paint an element's text run onto a canvas with the DOM's own font and * metrics, so canvas glyphs land on the DOM glyphs to within a device px. * Shared by the Pro badge's metal fill and the text reflection mask. * * `ctx` is expected in device px with origin at `root`'s top-left; the * function scales by `dpr` internally. */ export declare function paintTextRun(ctx: CanvasRenderingContext2D, root: HTMLElement, textEl: HTMLElement, dpr: number): void; /** Render `textEl`'s glyphs white-on-transparent over `root`'s box → data URL. */ export declare function textMaskDataUrl(root: HTMLElement, textEl: HTMLElement): string | null;