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>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace Body$ {
    /** @deprecated use `Body$inboundSchema` instead. */
    const inboundSchema: z.ZodType<Body, z.ZodTypeDef, unknown>;
    /** @deprecated use `Body$outboundSchema` instead. */
    const outboundSchema: z.ZodType<Body$Outbound, z.ZodTypeDef, Body>;
    /** @deprecated use `Body$Outbound` instead. */
    type Outbound = Body$Outbound;
}
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>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace ResponseT$ {
    /** @deprecated use `ResponseT$inboundSchema` instead. */
    const inboundSchema: z.ZodType<ResponseT, z.ZodTypeDef, unknown>;
    /** @deprecated use `ResponseT$outboundSchema` instead. */
    const outboundSchema: z.ZodType<ResponseT$Outbound, z.ZodTypeDef, ResponseT>;
    /** @deprecated use `ResponseT$Outbound` instead. */
    type Outbound = ResponseT$Outbound;
}
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>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace RawResponse$ {
    /** @deprecated use `RawResponse$inboundSchema` instead. */
    const inboundSchema: z.ZodType<RawResponse, z.ZodTypeDef, unknown>;
    /** @deprecated use `RawResponse$outboundSchema` instead. */
    const outboundSchema: z.ZodType<RawResponse$Outbound, z.ZodTypeDef, RawResponse>;
    /** @deprecated use `RawResponse$Outbound` instead. */
    type Outbound = RawResponse$Outbound;
}
export declare function rawResponseToJSON(rawResponse: RawResponse): string;
export declare function rawResponseFromJSON(jsonString: string): SafeParseResult<RawResponse, SDKValidationError>;
//# sourceMappingURL=rawresponse.d.ts.map