import type { VariableFontAxes } from "../lib/core/types.js"; /** * Find all font files in the CSS response and determine which files should be preloaded. * In Google Fonts responses, the @font-face's subset is above it in a comment. * Walk through the CSS from top to bottom, keeping track of the current subset. */ export declare function findFontFilesInCss(css: string, subsetsToPreload?: string[]): { googleFontFileUrl: string; preloadFontFile: boolean; }[]; /** * Filter CSS to only include specified subsets */ export declare function filterCssBySubsets(css: string, subsets: string[]): string; /** * Generate Google Fonts URL for fetching CSS */ export declare function getGoogleFontsUrl(fontFamily: string, axes: { wght?: string[]; ital?: string[]; variableAxes?: [string, string][]; }, display: string, baseUrl?: string, subsets?: string[]): string; /** * Parse font axes from weights and styles using font metadata * This ensures we use the actual supported weight ranges for variable fonts */ export declare function getFontAxes(fontFamily: string, weights: string[], styles: string[], selectedVariableAxes?: string[], customVariableAxes?: VariableFontAxes): { wght?: string[]; ital?: string[]; variableAxes?: [string, string][]; }; /** * Sort font variant values for consistent ordering * Handles complex formats like "ital,wght" used in Google Fonts API * * Based on next-font's implementation for proper variant sorting */ export declare function sortFontsVariantValues(valA: string, valB: string): number; //# sourceMappingURL=font-utils.d.ts.map