import type { PurchaseButtonMethod } from "../../types/components/purchase-button"; type CustomURLConfig = Extract["custom_url"]; type CustomWebCheckoutContext = { packageId: string; appUserId?: string; isSandbox?: boolean; rcSource?: string; }; /** * Mirrors the native SDKs: source, then app user ID, env and package when * configured. The source is the host's own, so it survives a same-tab hop. * Same-named params are replaced; an unparseable URL is returned unchanged. * Script-capable URLs resolve to undefined, so the button purchases instead. */ export declare const buildCustomWebCheckoutURL: (url: string, config: CustomURLConfig, { packageId, appUserId, isSandbox, rcSource }: CustomWebCheckoutContext) => string | undefined; export {};