export declare const SYSTEM_FONT_SIZE_LIMIT: number;
export type FontFileFormat = "ttf" | "otf" | "woff2" | "woff" | "ttc";
export interface LocatedFont {
    path: string;
    format: FontFileFormat;
}
export declare const FONT_EXT_RE: RegExp;
export declare function toFamilyName(fileName: string): string | null;
export declare function fontDirectories(): string[];
export interface FontFileEntry {
    path: string;
    fileName: string;
    family: string;
}
/**
 * Iterates font files in a directory (up to `depth` 2) and yields each file's
 * path, filename, and derived family name. Shared by the font listing route
 * and the per-family locator to avoid duplicating the directory scan loop.
 */
export declare function collectFontFileEntries(dir: string, depth?: number): FontFileEntry[];
export declare function locateSystemFont(family: string): LocatedFont | null;
export interface LocatedFontVariant extends LocatedFont {
    weight: string;
    style: "normal" | "italic";
}
export declare function locateSystemFontVariants(family: string): LocatedFontVariant[];
export declare function getSystemProfilerFamilies(): string[];
export declare function clearSystemFontCache(): void;
//# sourceMappingURL=systemFontLocator.d.ts.map