import { type FetchOptions } from 'ofetch'; import type { FetchClient } from './types/fetch-frog.js'; /** * Create a fetch frog client * * @param {string} baseUrl The base URL for the API * @param {import('ofetch').FetchOptions} defaults Default fetch options * * @example * ```js * const fetchClient = createFetchClient("https://petstore.swagger.io/v2", {}); * const { data, error } = await fetchClient("/pet", { * method: "POST", * body: { * name: "doggie", * photoUrls: ["https://example.com"], * }, * }); * * if (error) { * console.error(error) * return * } else { * console.info(data) * } * ``` */ export declare function createFetchClient(baseUrl: string, defaults: FetchOptions): FetchClient; //# sourceMappingURL=fetch-frog.d.ts.map