/** * Google Fonts runtime loading. * * Loads any Google font at runtime by injecting a css2 stylesheet link — no API key needed * (the Webfonts API key is only required for enumerating the catalog, which dotcom proxies * server-side). Generalizes the inline loader pattern from the Ascii shader. */ /** Builds a Google Fonts css2 URL for a single family/weight/italic combination. */ export declare function googleFontCss2Url(family: string, weight?: number, italic?: boolean, text?: string): string; /** * Loads a Google font (family + weight + italic) and resolves once the browser has it. * Safe to call repeatedly — concurrent and repeat calls share one load. If the requested * weight/style isn't published for the family (css2 responds 400), retries at regular 400 * and lets the browser synthesize bold/oblique. */ export declare function loadGoogleFont(family: string, weight?: number, italic?: boolean): Promise; /** Whether the browser already has this font available (cheap, for cache keying). */ export declare function isFontAvailable(family: string, weight?: number, italic?: boolean): boolean; //# sourceMappingURL=fonts.d.ts.map