type DataURL = string; export declare class ExcalidrawFontFace { readonly urls: URL[] | DataURL[]; readonly fontFace: FontFace; private static readonly ASSETS_FALLBACK_URL; constructor(family: string, uri: string, descriptors?: FontFaceDescriptors); /** * Generates CSS `@font-face` definition with the (subsetted) font source as a data url for the characters within the unicode range. * * Retrieves `undefined` otherwise. */ toCSS(characters: string): Promise | undefined; /** * Tries to fetch woff2 content, based on the registered urls (from first to last, treated as fallbacks). * * @returns base64 with subsetted glyphs based on the passed codepoint, last defined url otherwise */ getContent(codePoints: Array): Promise; fetchFont(url: URL | DataURL): Promise; private getUnicodeRangeRegex; private static createUrls; private static getFormat; private static normalizeBaseUrl; /** * zsviczian https://github.com/zsviczian/excalidraw/commit/b4cfaaa4b4f46ca01f94e27fb7bf651a9da99daa */ getContentLegacy(): Promise; } export {};