import { type Billing } from "@cargo-ai/api"; import type { Api } from "../../api.js"; export declare const DEFAULT_TIMEOUT_SECONDS = 300; export declare const DEFAULT_POLL_INTERVAL_SECONDS = 3; export type HostedCardFormOptions = { timeout: number; pollInterval: number; open: boolean; }; /** * Hands card entry off to Stripe's hosted billing portal and waits for the card * on file to change. * * The card never touches this process: the CLI only ever sees the last four * digits that the API already exposes. Polling is what makes the handoff usable * from a script — the caller gets a definite answer instead of having to guess * whether the operator finished. * * The URL lands directly on the card form, so an agent driving a browser can * complete this unattended. An agent holding the card details themselves should * pass them to `update-payment-method` instead and skip the browser entirely. */ export declare function runHostedCardForm(api: Api, opts: HostedCardFormOptions): Promise; /** * Stripe never exposes a raw card number here, so a change is detected from the * fields the API does return. Replacing a card with the very same one is * therefore indistinguishable from doing nothing, and the command times out. */ export declare function fingerprintCard(card: Billing.CreditCard | undefined): string; //# sourceMappingURL=hostedCardForm.d.ts.map