import { HttpClient, HttpClientConfig } from './fetch'; import { AuthError } from './errors'; import { z } from 'zod'; /** Response wrapper for validated API calls */ export interface FetchResponse { data: T | null; error: AuthError | null; } export declare class ValidatedApiClient extends HttpClient { constructor(config: HttpClientConfig); /** Override get to return FetchResponse */ get(url: string, options?: any): Promise>; /** Override post to return FetchResponse */ post(url: string, body?: any, options?: any): Promise>; /** Override put to return FetchResponse */ put(url: string, body?: any, options?: any): Promise>; /** Override patch to return FetchResponse */ patch(url: string, body?: any, options?: any): Promise>; /** Override delete to return FetchResponse */ delete(url: string, options?: any): Promise>; postWithValidation(url: string, body: any, requestSchema?: z.ZodSchema, responseSchema?: z.ZodSchema, options?: any): Promise>; getWithValidation(url: string, responseSchema?: z.ZodSchema): Promise>; putWithValidation(url: string, body: any, requestSchema?: z.ZodSchema, responseSchema?: z.ZodSchema): Promise>; } export declare function createValidatedHttpClient(config: HttpClientConfig): ValidatedApiClient; //# sourceMappingURL=validated-client.d.ts.map