import type { CompleteWorkflowNavigateArgs } from "../../types/components/button"; import type { ColorScheme } from "../../types/colors"; import type { InitialInputSelections } from "../../stores/inputValidation"; import type { OnComponentInteraction } from "../../types/paywall-component-interaction"; import type { PackageInfo, VariableDictionary, CustomVariables } from "../../types/variables"; import type { WalletButtonRender, WalletPurchasePrepare, WalletPurchaseStart } from "../../types/wallet"; import type { UIConfig } from "../../types/ui-config"; import type { ReservedAttribute } from "../../types/components/input-text"; import type { WorkflowNavData, WorkflowStepChangeEvent } from "../../types/workflow-nav"; import type { PaywallOffering, PaywallPackage } from "@revenuecat/workflow-web-components-sdk"; import type { BridgeInputs } from "../web-view/build-paywall-context"; interface Props { workflow: WorkflowNavData; uiConfig: UIConfig; selectedLocale?: string; globalVariables?: VariableDictionary; variablesPerPackage?: Record; /** Trial/intro/promo flags per package; required for intro_offer overrides. */ infoPerPackage?: Record; maxContentWidth?: string; initialInputSelections?: InitialInputSelections; containerId?: string; walletButtonRender?: WalletButtonRender; prepareWalletPurchase?: WalletPurchasePrepare; onWalletPurchaseClicked?: WalletPurchaseStart; appUserId?: string; isSandbox?: boolean; rcSource?: string; onCustomWebCheckout?: (url: string) => void; safeAreaFallbackColor?: ColorScheme | null; hideBackButtons?: boolean; onPurchaseClicked?: (packageId: string, actionId: string) => void | Promise; onActionTriggered?: (actionId: string) => void; onInputChanged?: (fieldId: string, value: string, actionId?: string) => void; /** * Called for sensitive inputs (keyboard_type: "password") instead of * onInputChanged, so hosts can keep the value in memory only. */ onSensitiveInputChanged?: (fieldId: string, value: string) => void; onReservedAttributeChanged?: (reservedAttribute: ReservedAttribute, value: string) => void; onCompleteWorkflowNavigate?: (args: CompleteWorkflowNavigateArgs) => void | Promise; onNavigateToUrlClicked?: (url: string) => void; onRestorePurchasesClicked?: () => void; onVisitCustomerCenterClicked?: () => void; onCookieSettingsClicked?: () => void; onComponentInteraction?: OnComponentInteraction; onClose?: () => void; onExitBack?: () => void; /** * Called whenever the current workflow step changes — on initial load, * forward navigation, back navigation, and when leaving a step (close, * purchase, error). Used by the host to fire workflow lifecycle events. */ onStepChanged?: (event: WorkflowStepChangeEvent) => void; offering?: PaywallOffering | null; packages?: PaywallPackage[]; isPreview?: boolean; inputs?: BridgeInputs; customVariables?: CustomVariables; } declare const Workflow: import("svelte").Component; type Workflow = ReturnType; export default Workflow;