@clerk/shared
Version:
Internal package utils used by the Clerk SDKs
15 lines (14 loc) • 578 B
text/typescript
import { CheckoutSignalValue } from "../../types/clerk.mjs";
import { __experimental_CheckoutProvider } from "../contexts.mjs";
//#region src/react/hooks/useCheckout.d.ts
type UseCheckoutParams = Parameters<typeof __experimental_CheckoutProvider>[0];
/**
* @function
*
* @param [options] - An object containing the configuration for the checkout flow.
*
* **Required** if the hook is used without a `<CheckoutProvider />` wrapping the component tree.
*/
declare const useCheckout: (options?: UseCheckoutParams) => CheckoutSignalValue;
//#endregion
export { useCheckout };