import * as z from "zod"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * A supported currency. */ export declare enum Currency { Aud = "AUD", Cad = "CAD", Eur = "EUR", Gbp = "GBP", Usd = "USD" } /** * A monetary amount, i.e. a base unit amount and a supported currency. */ export type Amount = { /** * A supported currency. */ currency: Currency; /** * A monetary amount, represented in its base units (e.g. USD/EUR cents). */ units: number; }; /** @internal */ export declare const Currency$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const Currency$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 Currency$ { /** @deprecated use `Currency$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum; /** @deprecated use `Currency$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum; } /** @internal */ export declare const Amount$inboundSchema: z.ZodType; /** @internal */ export type Amount$Outbound = { currency: string; units: number; }; /** @internal */ export declare const Amount$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 Amount$ { /** @deprecated use `Amount$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Amount$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Amount$Outbound` instead. */ type Outbound = Amount$Outbound; } export declare function amountToJSON(amount: Amount): string; export declare function amountFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=amount.d.ts.map