import { z } from 'zod'; export declare const FetchSuccessResponseSchema: (dataSchema: TData) => z.ZodObject<{ ok: z.ZodLiteral; data: TData; response: z.ZodCustom; }, z.core.$strip>; export type FetchSuccessResponse = { ok: true; data: TData; response: Response; }; export declare const FetchErrorResponseSchema: z.ZodObject<{ ok: z.ZodLiteral; response: z.ZodCustom; }, z.core.$strip>; export type FetchErrorResponse = { ok: false; response: Response; }; export declare const FetchResponseSchema: (dataSchema: T) => z.ZodUnion; response: z.ZodCustom; }, z.core.$strip>, z.ZodObject<{ ok: z.ZodLiteral; data: T; response: z.ZodCustom; }, z.core.$strip>]>; export type FetchResponse = FetchErrorResponse | FetchSuccessResponse; export declare const BodySchema: z.ZodUnion, Uint8Array>, z.ZodCustom, z.ZodCustom, z.ZodCustom, z.ZodCustom, ReadableStream>]>; export type Body = z.infer; export declare const HttpMethodSchema: z.ZodEnum<{ GET: "GET"; PUT: "PUT"; POST: "POST"; DELETE: "DELETE"; HEAD: "HEAD"; OPTIONS: "OPTIONS"; PATCH: "PATCH"; }>; export type HttpMethod = z.infer; export declare const FetchRequestSchema: z.ZodObject<{ method: z.ZodEnum<{ GET: "GET"; PUT: "PUT"; POST: "POST"; DELETE: "DELETE"; HEAD: "HEAD"; OPTIONS: "OPTIONS"; PATCH: "PATCH"; }>; body: z.ZodOptional, Uint8Array>, z.ZodCustom, z.ZodCustom, z.ZodCustom, z.ZodCustom, ReadableStream>]>>; signal: z.ZodOptional>; contentType: z.ZodOptional; headers: z.ZodOptional>; telemetry: z.ZodOptional>; }, z.core.$strip>>; binary: z.ZodOptional>; duplex: z.ZodOptional>; }, z.core.$strip>; export type FetchRequest = z.infer; export interface FetchAdapter { invoke(url: string, options: FetchRequest): Promise>; } //# sourceMappingURL=fetch.d.ts.map