import type { WretchResponse } from 'wretch'; import type { ZodError, z } from 'zod/v4'; import type { Either } from './either.ts'; export type BodyParseResult = Either<'NOT_JSON' | 'EMPTY_RESPONSE' | ZodError, z.output>; export declare function tryToResolveJsonBody(response: WretchResponse, path: string, schema: RequestBodySchema, isEmptyResponseExpected?: boolean): Promise>; export declare function parseResponseBody({ response, responseBodySchema, path, }: { response: unknown; responseBodySchema: z.ZodSchema; path: string; }): Either; export declare function parseRequestBody({ body, requestBodySchema, path, }: { body: unknown; requestBodySchema?: RequestBodySchema; path: string; }): Either>;