import type { CardCheckRefusal, EnteredCard } from '@funkit/connect-core'; export type CardCheckResult = { outcome: 'checked'; lifetimeMs?: number; } | { outcome: 'refused'; refusal: CardCheckRefusal; }; /** * The side effects the FiatV2 payment selection reducer asks its host to run. * The reducer never calls the network or reads the clock; the host runs these * and sends the answers back as events. * - Pass a stable object (module constant or memoized): the expiry timer * restarts when this identity changes. */ export interface FiatV2PaymentSelectionEffects { /** `POST /fiat/cards/check`. A throw is reported as `CARD_CHECK_FAILED`. */ checkCard(card: EnteredCard): Promise; /** Device clock in ms. Held-card expiry is measured against it. */ now(): number; } /** * M0 stand-in until the card check route exists in api-base. Every check is * refused as retryable, so the flow can be driven end to end without a vault. */ export declare const UNAVAILABLE_CARD_CHECK: FiatV2PaymentSelectionEffects;