import { Connection } from "penpal"; //#region src/penpal/connect-card.d.ts type CardIFrameMethods = { onSubmit: (cardSetupIntentId: string) => Promise; onValidate: () => Promise; }; type CardParentMethods = { onLoaded: () => void; onFocusChange: (isFocused: boolean) => void; }; type CardInputType = "card_pan" | "card_exp" | "card_cvc"; type CardErrorCode = "invalid" | "required" | "unknown_error" | "penpal_not_connected" | "missing_checkout_token"; type IFrameConnection = Connection; type ParentConnection = Connection; type CheckoutResponse = PublicCardCheckoutResponse; declare const connectToCardIframe: (iframe: HTMLIFrameElement, methods: CardParentMethods) => Connection; declare const connectToCardParent: (methods: CardIFrameMethods) => Connection; //#endregion export { ParentConnection as a, IFrameConnection as i, CardInputType as n, connectToCardIframe as o, CheckoutResponse as r, connectToCardParent as s, CardErrorCode as t }; //# sourceMappingURL=connect-card-CZhzK_Tp.d.mts.map