import * as z from "zod"; import { DuckyError } from "./duckyerror.js"; export type ErrorResponseData = { /** * Error message explaining the issue */ error?: string | undefined; }; export declare class ErrorResponse extends DuckyError { /** * Error message explaining the issue */ error?: string | 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; /** @internal */ export type ErrorResponse$Outbound = { error?: string | undefined; }; /** @internal */ export declare const ErrorResponse$outboundSchema: z.ZodType; /** * @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; /** @deprecated use `ErrorResponse$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `ErrorResponse$Outbound` instead. */ type Outbound = ErrorResponse$Outbound; } //# sourceMappingURL=errorresponse.d.ts.map