import type { OnboardingAnalyticsCallback } from "../analytics"; export type OnboardingQuizStepOptionLeading = { type: "icon"; icon: string; } | { type: "badge"; text: string; }; export type OnboardingQuizStepProps = { stepId: string; onAnalyticsEvent?: OnboardingAnalyticsCallback; sensitiveStepIds?: string[]; eyebrow?: { icon?: string; text: string; }; title: string; subtitle?: string; selection: { mode: "single" | "multiple"; min: number; max: number; }; options: Array<{ id: string; title: string; description?: string; leading?: OnboardingQuizStepOptionLeading; }>; counterTemplate?: string; hint?: { icon?: string; text: string; }; ctaLabel: string; secondaryAction?: { id: string; label: string; goTo?: string; }; progress?: { position: number; total: number; showLabel?: boolean; }; showBack?: boolean; value: string[]; onChange: (next: string[]) => void; /** Called with the latest selection when advancing (auto or manual confirm). */ onContinue: (value: string[]) => void; /** Text-only Voltar below options (header back arrow remains when showBack). */ showFooterBack?: boolean; onBack?: () => void; onSecondaryAction?: (actionId: string) => void; /** When false, selection is recorded but auto-advance is skipped (e.g. WhatsApp share). */ shouldAutoAdvanceOption?: (optionId: string) => boolean; onOptionActivated?: (optionId: string, value: string[]) => void; };