export type CardDetails = { number: string; expMonth: number; expYear: number; cvc: string; }; /** * Exchanges raw card details for a Stripe payment method ID, talking to Stripe * directly with the publishable key. * * The card deliberately does not travel through the Cargo API: this request * goes from the caller's machine straight to Stripe, and only the resulting * `pm_...` handle is ever sent to us. That is the same path Stripe.js takes in * a browser, and it is what keeps card data out of our servers and logs. */ export declare function tokenizeCard(publishableKey: string, card: CardDetails): Promise; /** * Parses `MM/YYYY` (also accepting `MM/YY` and `M/YYYY`), the form printed on * the card itself. */ export declare function parseCardExpiry(value: string): { expMonth: number; expYear: number; }; /** * Reads `{ number, expMonth, expYear, cvc }` from stdin. Preferred over flags * for the card number, which would otherwise sit in shell history and in * `ps` output for every other process on the machine. */ export declare function readCardFromStdin(): Promise; //# sourceMappingURL=tokenizeCard.d.ts.map