import * as z from "zod"; /** * The type of error returned */ export declare enum SchemasCartErrorTag { PaymentAlreadyExists = "payment_already_exists", CurrencyNotSupported = "currency_not_supported" } export type CartErrorData = { /** * The type of error returned */ dotTag: SchemasCartErrorTag; /** * 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 CartError extends Error { /** * The type of error returned */ dotTag: SchemasCartErrorTag; /** * Raw HTTP response; suitable for custom response parsing */ rawResponse?: Response | undefined; /** The original data that was passed to this error instance. */ data$: CartErrorData; constructor(err: CartErrorData); } /** @internal */ export declare const SchemasCartErrorTag$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const SchemasCartErrorTag$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 SchemasCartErrorTag$ { /** @deprecated use `SchemasCartErrorTag$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum; /** @deprecated use `SchemasCartErrorTag$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum; } /** @internal */ export declare const CartError$inboundSchema: z.ZodType; /** @internal */ export type CartError$Outbound = { ".tag": string; message: string; RawResponse?: never | undefined; }; /** @internal */ export declare const CartError$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 CartError$ { /** @deprecated use `CartError$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `CartError$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `CartError$Outbound` instead. */ type Outbound = CartError$Outbound; } //# sourceMappingURL=carterror.d.ts.map