import * as z from "zod";
import { S2Error } from "./s2error.js";
export type ErrorResponseData = {
    code?: string | null | undefined;
    message: string;
};
export declare class ErrorResponse extends S2Error {
    code?: string | null | undefined;
    /** The original data that was passed to this error instance. */
    data$: ErrorResponseData;
    constructor(err: ErrorResponseData, httpMeta: {
        response: Response;
        request: Request;
        body: string;
    });
}
/** @internal */
export declare const ErrorResponse$inboundSchema: z.ZodType<ErrorResponse, z.ZodTypeDef, unknown>;
/** @internal */
export type ErrorResponse$Outbound = {
    code?: string | null | undefined;
    message: string;
};
/** @internal */
export declare const ErrorResponse$outboundSchema: z.ZodType<ErrorResponse$Outbound, z.ZodTypeDef, ErrorResponse>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace ErrorResponse$ {
    /** @deprecated use `ErrorResponse$inboundSchema` instead. */
    const inboundSchema: z.ZodType<ErrorResponse, z.ZodTypeDef, unknown>;
    /** @deprecated use `ErrorResponse$outboundSchema` instead. */
    const outboundSchema: z.ZodType<ErrorResponse$Outbound, z.ZodTypeDef, ErrorResponse>;
    /** @deprecated use `ErrorResponse$Outbound` instead. */
    type Outbound = ErrorResponse$Outbound;
}
//# sourceMappingURL=errorresponse.d.ts.map