import { AgentCardRail } from '../../types/index.cjs'; import { OrderIntentAgenticTokenRail, OrderIntentEncryptedCardRail, OrderIntentRail } from '../../types/payment-method-management/OrderIntents.cjs'; import '../../types/events/internal/index.cjs'; import '../../types/events/internal/events.cjs'; import '../../types/events/internal/payloads.cjs'; import '../../types/system.cjs'; import '@crossmint/common-sdk-base'; import '../../types/events/public/events.cjs'; import '../../types/embed/v3/events/incoming.cjs'; import 'zod'; import '../../types/embed/v3/events/outgoing.cjs'; import '../../types/embed/v3/events/EmbeddedCheckoutV3IFrameEmitter.cjs'; import '@crossmint/client-sdk-window'; import '../../types/payment-method-management/events/incoming.cjs'; import '../../types/payment-method-management/events/outgoing.cjs'; import '../../types/payment-method-management/events/PaymentMethodManagementIFrameEmitter.cjs'; import '../../types/payment-method-management/PaymentMethodAgenticEnrollment.cjs'; import '../../types/payment-method-management/VerificationAppearance.cjs'; import '../../types/identity-verification/events/incoming.cjs'; import '../../types/identity-verification/events/outgoing.cjs'; import '../../types/identity-verification/events/IdentityVerificationIFrameEmitter.cjs'; import '../../types/embedded-offramp/events/incoming.cjs'; import '../../types/embedded-offramp/events/outgoing.cjs'; import '../../types/embedded-offramp/events/EmbeddedOfframpIFrameEmitter.cjs'; import '../../types/cvc-recollection/events/incoming.cjs'; import '../../types/cvc-recollection/events/outgoing.cjs'; import '../../types/cvc-recollection/events/CvcRecollectionIFrameEmitter.cjs'; import '../../types/protected-input/events/incoming.cjs'; import '../../types/protected-input/events/outgoing.cjs'; import '../../types/protected-input/events/ProtectedInputIFrameEmitter.cjs'; import '../../types/CryptoCurrency.cjs'; type CardCapableRail = OrderIntentAgenticTokenRail | OrderIntentEncryptedCardRail; type SelectCardRailOptions = { /** * Whether the caller can run rail verification for this order intent (it carries a * `verificationConfig`). When false, a `pending_verification` rail is not a candidate. * Defaults to true. */ canVerify?: boolean; }; /** * Picks the rail Universal Checkout will draw a card credential from, with the same policy * the server applies when it mints the credential: the first *active* rail in the order * `agentic-token`/`vic`, `agentic-token`/`agentpay`, `encrypted-card`, each only if its * credential formats include `card`. Only when nothing is active does a pending rail the * buyer can complete count, in the same order: `pending_verification` when `canVerify`, * `pending_cvc_recollection` always. Rails in `error` never count. Neither the model nor the * buyer takes part in this choice. Returns `null` when no card-capable rail is usable. * @experimental Follows the `/api/unstable` order-intent rails; may change in a minor release. */ declare function selectCardRail(rails: OrderIntentRail[], { canVerify }?: SelectCardRailOptions): CardCapableRail | null; /** * Identity of a chosen rail, so it can be found again after the order intent is re-read. * @experimental */ declare function toAgentCardRail(rail: CardCapableRail): AgentCardRail; /** * Finds the rail matching an earlier selection in a re-read order intent, with the same * card-format check as `selectCardRail`; a rail that lost its `card` format is not found. * @experimental */ declare function findCardRail(rails: OrderIntentRail[], selection: AgentCardRail): CardCapableRail | null; export { type CardCapableRail, type SelectCardRailOptions, findCardRail, selectCardRail, toAgentCardRail };