import * as neverthrow from 'neverthrow'; import { Schema, z } from 'zod'; declare function fetchWithValidation(url: string, schema: Schema, options?: RequestInit, errorSchema?: Schema): Promise | neverthrow.Err | neverthrow.Err | neverthrow.Err | neverthrow.Ok<{ data: DataOut; text: string; response: Response; requestOptions: { headers: HeadersInit; body?: BodyInit | null; cache?: RequestCache; credentials?: RequestCredentials; integrity?: string; keepalive?: boolean; method?: string; mode?: RequestMode; priority?: RequestPriority; redirect?: RequestRedirect; referrer?: string; referrerPolicy?: ReferrerPolicy; signal?: AbortSignal | null; window?: null; }; url: string; }, never> | neverthrow.Err | neverthrow.Err | neverthrow.Err | neverthrow.Err>; declare class Wrapper { wrapped(url: string, schema: Schema, options?: RequestInit, errorSchema?: Schema): Promise | neverthrow.Err | neverthrow.Err | neverthrow.Err | neverthrow.Ok<{ data: DataOut; text: string; response: Response; requestOptions: { headers: HeadersInit; body?: BodyInit | null; cache?: RequestCache; credentials?: RequestCredentials; integrity?: string; keepalive?: boolean; method?: string; mode?: RequestMode; priority?: RequestPriority; redirect?: RequestRedirect; referrer?: string; referrerPolicy?: ReferrerPolicy; signal?: AbortSignal | null; window?: null; }; url: string; }, never> | neverthrow.Err | neverthrow.Err | neverthrow.Err | neverthrow.Err>; } type FetchWithValidationType = ReturnType['wrapped']>; declare function simpleFetch(f: (...params: P) => FetchWithValidationType): (...params: Parameters) => Promise; export { type FetchWithValidationType, fetchWithValidation, simpleFetch };