import { z } from "zod"; /** The one card action this family registers: a purchase the issuer will authorize later. */ export declare const CARD_PURCHASE_ACTION = "card.purchase"; export declare class CardActionError extends Error { readonly code: string; constructor(code: string); } /** * The parameters of `card.purchase`: what the agent wants to buy, with which * card, from whom, for at most how much. The card is named by its token * reference, never by its number; the amount is minor units of a currency * this build knows the exponent of, and it is the ceiling the issuer's * authorization will be matched against. */ export declare const CardPurchaseSchema: z.ZodObject<{ cardTokenRef: z.ZodString; amountMinor: z.ZodNumber; currency: z.ZodString; merchantId: z.ZodString; mcc: z.ZodOptional; }, z.core.$strict>; export type CardPurchase = z.infer; /** What the issuer's real-time authorization hook asks. */ export declare const CardAuthorizationRequestSchema: z.ZodObject<{ authorization_id: z.ZodString; card_token_ref: z.ZodString; amount_minor: z.ZodNumber; currency: z.ZodString; merchant_id: z.ZodString; mcc: z.ZodOptional; }, z.core.$strict>; export type CardAuthorizationRequest = z.infer; /** What the issuer says it did with an authorization it asked about. */ export declare const CardAuthorizationResultSchema: z.ZodObject<{ status: z.ZodEnum<{ APPROVED: "APPROVED"; DECLINED: "DECLINED"; }>; approved_amount_minor: z.ZodOptional; auth_code: z.ZodOptional; }, z.core.$strict>; export type CardAuthorizationResult = z.infer; /** The action as the profile reads it, or the refusal that says why not. */ export declare function cardPurchaseOf(parameters: unknown): CardPurchase; /** * The binding between the transport and the action: the target is derived * from the card, so a caller describing one card and asking for another is * refused before the authority is asked. */ export declare function bindCardPurchase(input: { readonly target: string; readonly parameters: unknown; }): CardPurchase; /** The transport target a card purchase names: the card it spends from. */ export declare function cardTarget(purchase: CardPurchase): string; export declare function cardAuthorizationOf(input: unknown): CardAuthorizationRequest; export declare function cardAuthorizationResultOf(input: unknown): CardAuthorizationResult; /** An authorization id as it arrives in a path segment, held to the same rule as everywhere else. */ export declare function isCardReference(value: string): boolean; export declare function isCardActionName(action: string): boolean; //# sourceMappingURL=CardPurchase.d.ts.map