import * as z from "zod";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
export type RawResponse = {
    body?: string | null | undefined;
    method: string;
    response?: {
        [k: string]: any;
    } | null | undefined;
    url: string;
};
/** @internal */
export declare const RawResponse$inboundSchema: z.ZodType<RawResponse, z.ZodTypeDef, unknown>;
/** @internal */
export type RawResponse$Outbound = {
    body?: string | null | undefined;
    method: string;
    response?: {
        [k: string]: any;
    } | 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