UNPKG

@revenuecat/purchases-ui-js

Version:

Web components for Paywalls. Powered by RevenueCat

17 lines (16 loc) 820 B
import { type Readable } from "svelte/store"; /** * Map of field_id → previously selected option_ids. * Used to restore selection state when navigating back to a step. */ export type InitialInputSelections = Record<string, string[]>; interface InputValidationContext { isSatisfied: Readable<boolean>; updateSatisfaction: (satisfied: boolean) => void; } export declare function createInputValidationContext(): InputValidationContext; export declare function setInputValidationContext(context: InputValidationContext): void; export declare function getInputValidationContext(): InputValidationContext | undefined; export declare function setInitialInputSelectionsContext(selections: InitialInputSelections): void; export declare function getInitialInputSelectionsContext(): InitialInputSelections; export {};