import * as z from "zod/v3";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
export type Body = string | {
    [k: string]: any;
} | Array<number>;
export type ResponseT = {
    [k: string]: any;
} | Array<any> | string;
export type RawResponse = {
    body?: string | {
        [k: string]: any;
    } | Array<number> | null | undefined;
    method: string;
    response?: {
        [k: string]: any;
    } | Array<any> | string | null | undefined;
    url: string;
};
/** @internal */
export declare const Body$inboundSchema: z.ZodType<Body, z.ZodTypeDef, unknown>;
/** @internal */
export type Body$Outbound = string | {
    [k: string]: any;
} | Array<number>;
/** @internal */
export declare const Body$outboundSchema: z.ZodType<Body$Outbound, z.ZodTypeDef, Body>;
export declare function bodyToJSON(body: Body): string;
export declare function bodyFromJSON(jsonString: string): SafeParseResult<Body, SDKValidationError>;
/** @internal */
export declare const ResponseT$inboundSchema: z.ZodType<ResponseT, z.ZodTypeDef, unknown>;
/** @internal */
export type ResponseT$Outbound = {
    [k: string]: any;
} | Array<any> | string;
/** @internal */
export declare const ResponseT$outboundSchema: z.ZodType<ResponseT$Outbound, z.ZodTypeDef, ResponseT>;
export declare function responseToJSON(responseT: ResponseT): string;
export declare function responseFromJSON(jsonString: string): SafeParseResult<ResponseT, SDKValidationError>;
/** @internal */
export declare const RawResponse$inboundSchema: z.ZodType<RawResponse, z.ZodTypeDef, unknown>;
/** @internal */
export type RawResponse$Outbound = {
    body?: string | {
        [k: string]: any;
    } | Array<number> | null | undefined;
    method: string;
    response?: {
        [k: string]: any;
    } | Array<any> | string | null | undefined;
    url: string;
};
/** @internal */
export declare const RawResponse$outboundSchema: z.ZodType<RawResponse$Outbound, z.ZodTypeDef, RawResponse>;
export declare function rawResponseToJSON(rawResponse: RawResponse): string;
export declare function rawResponseFromJSON(jsonString: string): SafeParseResult<RawResponse, SDKValidationError>;
//# sourceMappingURL=rawresponse.d.ts.map