import { AxiosInstance } from "axios"; import type { AxiosRequestConfig } from "axios"; import type { TypeGuardFn } from "guardz"; import type { SafeRequestConfig } from "../types/SafeRequestConfig"; import type { SafeRequestResult } from "../types/SafeRequestResult"; import type { SafeApiContextConfig } from "../types/SafeApiContextConfig"; /** * Pattern 4: Context/Provider (React style) * Usage: const safeApi = createSafeApiContext({ baseURL: '...', defaultTolerance: false }); * const result = await safeApi.get('/users/1', { guard: isUser }); */ export declare function createSafeApiContext(contextConfig?: SafeApiContextConfig): { get: (url: string, config: { guard: TypeGuardFn; } & Partial>, axiosConfig?: AxiosRequestConfig) => Promise>; post: (url: string, data: any, config: { guard: TypeGuardFn; } & Partial>, axiosConfig?: AxiosRequestConfig) => Promise>; put: (url: string, data: any, config: { guard: TypeGuardFn; } & Partial>, axiosConfig?: AxiosRequestConfig) => Promise>; patch: (url: string, data: any, config: { guard: TypeGuardFn; } & Partial>, axiosConfig?: AxiosRequestConfig) => Promise>; delete: (url: string, config: { guard: TypeGuardFn; } & Partial>, axiosConfig?: AxiosRequestConfig) => Promise>; safe: () => import("..").SafeRequestBuilder; instance: AxiosInstance; }; //# sourceMappingURL=createSafeApiContext.d.ts.map