import type { FontWrapper } from "./finalizationRegistry"; export type FallbackFontsCallback = (missingGlyph: number, weight: number, languages: string[]) => FontWrapper | FontWrapper[] | null | undefined; export declare class RiveFont { private static _fallbackFontCallback; private constructor(); /** * Set a callback to dynamically set a list of fallback fonts based on the missing glyph and/or style of the default font. * Set null to clear the callback. * @param fontCallback Callback to set a list of fallback fonts. */ static setFallbackFontCallback(fontCallback: FallbackFontsCallback | null): void; /** * Set the preferred languages (BCP 47 tags, most preferred first) that text * without a `language` of its own shapes and falls back with, like * `navigator.languages` is for a page. Pass nothing to follow * `navigator.languages`, which is also what happens until this is called, * including when the browser's languages change. * @param languages The languages to use, or nothing for the browser's. */ static setSystemLanguages(languages?: readonly string[] | null): void; private static _fontToPtr; private static _getFallbackPtr; private static _wireFallbackProc; }