import type { LinkController } from '../types'; /** * `useLinkController` hook. * * Provides `initLinkController` and `presentLinkController` methods with a shared * `loading` state. Call `initLinkController` once when your checkout screen loads, * then `presentLinkController` when the customer taps your Link button. * * @PrivatePreview This API is in private preview and may change without notice. */ export declare function useLinkController(): { /** Whether an operation is currently in progress. */ loading: boolean; /** * Initializes the LinkController with the provided configuration. * Must be called before `presentLinkController`. * * @PrivatePreview */ initLinkController: (params: LinkController.Configuration) => Promise; /** * Presents the Link flow. Must be called after `initLinkController`. * * @PrivatePreview */ presentLinkController: () => Promise; /** * Confirms a SetupIntent using the payment method from the most recent * `presentLinkController` call. Must be called after a successful presentation. * * @PrivatePreview */ confirmLinkControllerSetupIntent: (clientSecret: string) => Promise; }; //# sourceMappingURL=useLinkController.d.ts.map