import * as z from "zod"; /** * The type of error returned */ export declare enum DotTag { Unauthorized = "unauthorized", Forbidden = "forbidden", UnprocessableRequest = "unprocessable_request", NotFound = "not_found" } export type ErrorTData = { /** * The type of error returned */ dotTag: DotTag; /** * A human-readable error message, which might include information specific to the request that was made. */ message: string; /** * Raw HTTP response; suitable for custom response parsing */ rawResponse?: Response | undefined; }; export declare class ErrorT extends Error { /** * The type of error returned */ dotTag: DotTag; /** * Raw HTTP response; suitable for custom response parsing */ rawResponse?: Response | undefined; /** The original data that was passed to this error instance. */ data$: ErrorTData; constructor(err: ErrorTData); } /** @internal */ export declare const DotTag$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const DotTag$outboundSchema: z.ZodNativeEnum; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace DotTag$ { /** @deprecated use `DotTag$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum; /** @deprecated use `DotTag$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum; } /** @internal */ export declare const ErrorT$inboundSchema: z.ZodType; /** @internal */ export type ErrorT$Outbound = { ".tag": string; message: string; RawResponse?: never | undefined; }; /** @internal */ export declare const ErrorT$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 ErrorT$ { /** @deprecated use `ErrorT$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `ErrorT$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `ErrorT$Outbound` instead. */ type Outbound = ErrorT$Outbound; } //# sourceMappingURL=error.d.ts.map