/** * Makes a simple GET request and returns the entire response as a Buffer. * - Throws if the response status is not 200. * - Applies a 3000 ms timeout when `isDev` is `true`. */ export declare function fetchResource(url: string, isDev: boolean, errorMessage?: string): Promise; /** * Fetches the CSS containing the @font-face declarations from Google Fonts. * The fetch has a user agent header with a modern browser to ensure we'll get .woff2 files. * * The env variable FONT_GOOGLE_MOCKED_RESPONSES may be set containing a path to mocked data. * It's used to define mocked data to avoid hitting the Google Fonts API during tests. */ export declare function fetchCSSFromGoogleFonts(url: string, fontFamily: string, isDev: boolean): Promise; /** * Fetches a font file and returns its contents as a Buffer. * If NEXT_FONT_GOOGLE_MOCKED_RESPONSES is set, we handle mock data logic. */ export declare function fetchFontFile(url: string, isDev: boolean): Promise; //# sourceMappingURL=fetch-resource.d.ts.map