export declare const BUILDER_PREVIEW_LOCALES_CHANGED = "builder.preview.localesChanged"; export declare const BUILDER_PREVIEW_READY = "builder.preview.ready"; export declare const BUILDER_PREVIEW_ACTIVE_STEP_CHANGED = "builder.preview.activeStepChanged"; export declare const BUILDER_PREVIEW_GO_TO_STEP = "builder.preview.goToStep"; export declare const BUILDER_PREVIEW_DEFINITION_PATCH = "builder.preview.definitionPatch"; export declare const BUILDER_PREVIEW_VARIABLE_VALUES_CHANGED = "builder.preview.variableValuesChanged"; export declare const BUILDER_PREVIEW_PAYWALL_PLANS_CHANGED = "builder.preview.paywallPlansChanged"; export declare const BUILDER_PREVIEW_THEME_CHANGED = "builder.preview.themeChanged"; export declare const BUILDER_PREVIEW_EDIT_MODE_CHANGED = "builder.preview.editModeChanged"; export declare const BUILDER_PREVIEW_TEXT_EDITED = "builder.preview.textEdited"; export type BuilderPreviewReadyMessage = { type: typeof BUILDER_PREVIEW_READY; stepId: string; }; export type BuilderPreviewActiveStepChangedMessage = { type: typeof BUILDER_PREVIEW_ACTIVE_STEP_CHANGED; stepId: string; }; export type BuilderPreviewGoToStepMessage = { type: typeof BUILDER_PREVIEW_GO_TO_STEP; stepId: string; }; export type BuilderPreviewContentDefinitionPatch = { kind: 'content'; stepId: string; locale: string; content: Record; }; export type BuilderPreviewPricingDefinitionPatch = { kind: 'pricing'; stepId: string; pricing: { defaultOfferKey: string; defaultOfferOrder: readonly string[]; countryOverrides?: Record; }; }; export type BuilderPreviewDefinitionPatch = BuilderPreviewContentDefinitionPatch | BuilderPreviewPricingDefinitionPatch; export type BuilderPreviewDefinitionPatchMessage = { type: typeof BUILDER_PREVIEW_DEFINITION_PATCH; patch: BuilderPreviewDefinitionPatch; }; export type BuilderPreviewVariableValuesChangedMessage = { type: typeof BUILDER_PREVIEW_VARIABLE_VALUES_CHANGED; stepId: string; values: Record; }; export type BuilderPreviewPaywallPlan = { id: string; title: string; description?: string; providerPlanId?: string; priceLabel: string; oldPriceLabel?: string; featuredTag?: string; perDayAmount: string; perDayLabel: string; amountCents: number; comparison?: { perDay?: string; perWeek?: string; perMonth?: string; perYear?: string; }; checkoutOriginalAmountCents?: number; checkoutSummaryLabel?: string; source: 'stripe' | 'config'; }; export type BuilderPreviewPaywallPlansChangedMessage = { type: typeof BUILDER_PREVIEW_PAYWALL_PLANS_CHANGED; stepId: string; plans: BuilderPreviewPaywallPlan[]; }; export type BuilderPreviewThemeChangedMessage = { type: typeof BUILDER_PREVIEW_THEME_CHANGED; cssVariables: Record; }; export type BuilderPreviewEditModeChangedMessage = { type: typeof BUILDER_PREVIEW_EDIT_MODE_CHANGED; enabled: boolean; }; export type BuilderPreviewTextEditedMessage = { type: typeof BUILDER_PREVIEW_TEXT_EDITED; stepId: string; tag: string; index: number; value: string; previousValue: string; };