/** * Options for creating a checkout with a custom line item. */ export interface CustomLineItemCheckoutOptions { /** * The name of the product for the custom line item. * @example "My Custom Product" */ productName: string; /** * A description for the price, which will be displayed to the customer. * @example "per month" */ priceDescription: string; /** * An array of policies related to this custom item. * Each policy should have a title and content. */ policies?: { content: string; title: string; }[]; /** * The URL to redirect the user to after the checkout is successfully completed. */ postFlowUrl?: string; /** * The quantity of the product. * @default 1 */ quantity?: number; /** * The price of the product. */ price: string; /** * The currency of the product. It will only take effect after configuring the payment provider to accept this currency. */ currency: string; } /** * Creates a factory function to generate checkout URLs for custom line items with a fixed price. * This is useful when you have a single product or service with a known price, * and you want to dynamically create checkout sessions for it. * * @param factoryOpts - The options for the factory, including the price. * @returns A function that takes `CustomLineItemCheckoutOptions` and returns a checkout URL. */ export declare function getCustomLineItemCheckoutURLFactory(factoryOpts: CustomLineItemCheckoutOptions): () => Promise;