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 { WorkflowScreen } from "../../types/workflow"; 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 { PaywallOffering, PaywallPackage, PaywallWorkflow } from "@revenuecat/workflow-web-components-sdk"; import type { BridgeInputs } from "../web-view/build-paywall-context"; interface Props { paywallComponents: WorkflowScreen | null | undefined; selectedLocale?: string; uiConfig: UIConfig; globalVariables?: VariableDictionary; onActionTriggered?: (actionId: string) => void; onComponentInteraction?: OnComponentInteraction; onPurchaseClicked?: (packageId: string, actionId: string) => void | Promise; onBackClicked?: () => void; onClose?: () => void; containerId?: string; maxContentWidth?: string; variablesPerPackage?: Record; infoPerPackage?: Record; initialInputSelections?: InitialInputSelections; 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; walletButtonRender?: WalletButtonRender; prepareWalletPurchase?: WalletPurchasePrepare; onWalletPurchaseClicked?: WalletPurchaseStart; appUserId?: string; isSandbox?: boolean; rcSource?: string; onCustomWebCheckout?: (url: string) => void; safeAreaFallbackColor?: ColorScheme | null; hideBackButtons?: boolean; offering?: PaywallOffering | null; packages?: PaywallPackage[]; workflow?: PaywallWorkflow; isPreview?: boolean; inputs?: BridgeInputs; customVariables?: CustomVariables; } declare const Screen: import("svelte").Component; type Screen = ReturnType; export default Screen;