/** * Serializable plan shape accepted by PlanPicker. `SubscriptionPlan` model * instances satisfy it structurally, but it can also be plain data returned * from a SvelteKit `load` — models lose their methods across serialization, * so components must not *require* them. `featureKeys` is accepted as an * explicit view-model field; `features` supports the framework's normal * serialized model shape; and model instances can still use getFeatureKeys(). */ type SerializedFeatureGrant = string | { featureKey?: string; enabled?: boolean; }; export interface PlanPickerPlan { id?: string; planKey: string; name: string; description?: string | null; /** Integer minor units of `currency` — `$19.99` is `1999` (#2401). */ priceAmount: number; currency: string; billingInterval: string; featureKeys?: string[]; features?: string | SerializedFeatureGrant[]; getFeatureKeys?: () => string[]; } type $$ComponentProps = { plans?: PlanPickerPlan[]; selectedPlanKey?: string | null; onSelect?: (plan: PlanPickerPlan) => void; }; declare const PlanPicker: import("svelte").Component<$$ComponentProps, {}, "">; type PlanPicker = ReturnType; export default PlanPicker; //# sourceMappingURL=PlanPicker.svelte.d.ts.map