import type { HtmlTagDescriptor } from 'vite'; export interface FontFallbackConfig { /** * System fonts to use as fallback bases. * When not provided, fontaine auto-selects by category. * @example ['Arial', 'Helvetica Neue'] */ fallbacks?: string[]; /** * Generic font category. Used to auto-select system fallbacks * when `fallbacks` is not provided. * @default 'sans-serif' */ category?: 'sans-serif' | 'serif' | 'monospace'; /** * Override the generated fallback font-face name. * @default '{familyName} fallback' */ name?: string; } export interface Options { /** Custom font families loaded from local files. */ custom?: CustomFonts; /** Font families loaded from Fontsource packages. */ fontsource?: FontsourceFonts; /** Font families loaded from Google Fonts. */ google?: GoogleFonts; /** Font families loaded from Adobe Typekit. */ typekit?: TypeKitFonts; /** Enable sourcemap generation for virtual CSS modules. */ sourcemap?: string; /** * Inline `@font-face` rules into the HTML as a `