/** * This fetches the Google Fonts Developer API for all the basic metadata available. * * {@link https://developers.google.com/fonts/docs/developer_api} * @param key Google API key */ declare const fetchAPI: (key: string) => Promise; interface APIResponse { family: string; variants: string[]; subsets: string[]; version: string; lastModified: string; category: string; } type FontVariants = Record>>; type AxesFontObject = Record; type FontObjectV1 = Record; type FontObjectV2 = Record; variants: FontVariants; defSubset: string; lastModified: string; version: string; category: string; }>; interface FontObjectVariableDirect { family: string; id: string; axes: AxesFontObject; } type FontVariantsVariable = Record>>; type FontObjectVariable = Record; interface APIIconResponse extends APIResponse { axes?: AxesFontObject; } type FontObject = FontObjectV1 | FontObjectV2 | FontObjectVariable; interface AxesObject { name: string; tag: string; min: number; max: number; default: number; precision: number; } interface Authors { copyright: string; website?: string; email?: string; } interface License { type: string; url: string; } type Licenses = Record; /** * Parses the fetched API data and writes it to the APIv1 JSON dataset. * @param force - Force update all fonts without using cache. * @param noValidate - Skip automatic validation of generated data. */ declare const parsev1: (force: boolean, noValidate: boolean) => Promise; /** * Parses the fetched API and writes it to the APIv2 dataset. * @param force - Force update all fonts without using cache. * @param noValidate - Skip automatic validation of generated data. */ declare const parsev2: (force: boolean, noValidate: boolean) => Promise; declare const generateAxis: (key?: string) => Promise; /** * This returns a version of the Google Fonts Developer API. * {@link https://developers.google.com/fonts/docs/developer_api} */ declare const APIDirect: APIResponse[]; /** * This returns a parsed version of the Google Fonts CSS API (v1) for all Google Fonts. * {@link https://developers.google.com/fonts/docs/getting_started} */ declare const APIv1: FontObjectV1; /** * This returns a parsed version of the Google Fonts CSS API (v1) for all Google Fonts. * {@link https://developers.google.com/fonts/docs/css2} */ declare const APIv2: FontObjectV2; /** * This returns a response from the Google Fonts API for all icons. * {@link https://fonts.google.com/icons} */ declare const APIIconDirect: APIIconResponse[]; /** * This returns a parsed version of the Google Fonts API for icons using the CSS API v2. * {@link https://fonts.google.com/icons} */ declare const APIIconStatic: FontObjectV2; /** * This returns a parsed version of the Google Fonts API for icons that are variable. * {@link https://fonts.google.com/icons} */ declare const APIIconVariable: FontObjectVariable; /** * This returns a scraped version of the Google Fonts Variable Fonts page. * {@link https://fonts.google.com/variablefonts} */ declare const APIVariableDirect: FontObjectVariableDirect[]; /** * This returns a parsed version of the Google Fonts CSS API (Variable) for all Google Fonts. * {@link https://fonts.google.com/variablefonts} */ declare const APIVariable: FontObjectVariable; /** * This returns a parsed version of the Google Fonts Attribution page. * {@link https://fonts.google.com/attribution} */ declare const APILicense: Licenses; /** * This returns the axis registry of the supported Google Font variable axes. * {@link https://github.com/googlefonts/axisregistry} */ declare const APIRegistry: AxesObject[]; /** * Parses the fetched API and writes it to the APIv2 dataset. * @param force - Force update all fonts without using cache. * @param noValidate - Skip automatic validation of generated data. */ declare const parseIcons: (force: boolean) => Promise; /** * Fetches the attribution data from Google Fonts and writes it to the APILicense dataset. * * {@link https://fonts.google.com/attribution} */ declare const parseLicenses: () => Promise; /** * This scrapes the Google Fonts Variable Font page for all the basic metadata available. * * {@link https://fonts.google.com/variablefonts} */ declare const fetchVariable: () => Promise; /** * Parses the scraped variable font data into a usable APIVariable dataset, * @param noValidate - Skip automatic validation of parsed dataset. */ declare const parseVariable: (noValidate: boolean) => Promise; export { APIDirect, APIIconDirect, APIIconStatic, APIIconVariable, APILicense, APIRegistry, APIVariable, APIVariableDirect, APIv1, APIv2, fetchAPI, fetchVariable, generateAxis, parseIcons, parseLicenses, parseVariable, parsev1, parsev2 }; export type { APIIconResponse, APIResponse, AxesObject, FontObject, FontObjectV1, FontObjectV2, FontObjectVariable, FontObjectVariableDirect, FontVariants, FontVariantsVariable, Licenses };