Files
muzak/node_modules/@next/font/dist/google/find-font-files-in-css.d.ts
T
2025-07-02 11:28:41 +02:00

10 lines
413 B
TypeScript

/**
* 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;
}[];