import { version } from "./generated/data.js"; import type { CssPathOptions, FontFaceOptions, FontMetadata } from "./types.js"; export type { Category, CssPathOptions, FontFaceOptions, FontMetadata, VariableAxis } from "./types.js"; export { version }; /** All bundled font families (metadata only — no CSS or binaries are loaded by importing this). */ export declare const fonts: FontMetadata[]; /** Look up one family by id, e.g. `getFont("inter")`. */ export declare function getFont(id: string): FontMetadata | undefined; /** * Public CDN URL (jsDelivr) of any file in the package. * `cdnUrl("inter", "400.css")` → https://cdn.jsdelivr.net/npm/@xerobi/fonts@1.0.0/dist/fonts/inter/400.css */ export declare function cdnUrl(id: string, file?: string, options?: { version?: string; host?: string; }): string; /** * The import specifier for a stylesheet. * * cssPath("inter", { weight: 700, subset: "latin" }) → "@xerobi/fonts/inter/latin-700.css" * cssPath("inter", { variable: true }) → "@xerobi/fonts/inter/variable" */ export declare function cssPath(id: string, o?: CssPathOptions): string; /** * Generate `@font-face` CSS at runtime — use it for a custom `font-display`, * a custom base URL (your own CDN / bucket) or a custom family name. * * fontFace("inter", { subsets: ["latin"], weights: [400, 700], display: "optional" }) * fontFace("roboto", { variable: true, axes: "wdth", baseUrl: "/fonts" }) */ export declare function fontFace(id: string, options?: FontFaceOptions): string; //# sourceMappingURL=index.d.ts.map