/** * UDP Onboarding Field Configuration * ==================================== * Single source of truth for all per-field onboarding metadata. * Both frontend and backend import this. * * IMPORTANT: All string properties (title, subtitle, successMessage, * step group label) are i18n KEYS, not display text. The frontend resolves * them via useTranslations("udp") → t(config.title). * * Translation files: * - messages/en/udp.json (English — under "udp" root key) * - messages/hi/udp.json (Hindi — under "udp" root key) * * @module udp-schema/onboarding-config */ export interface UdpOnboardingFieldConfig { /** i18n key for the question heading (resolved via t(title)) */ title: string; /** i18n key for help text below the heading */ subtitle?: string; /** i18n key for toast message on successful save */ successMessage: string; /** Whether the field is required to proceed */ required: boolean; /** i18n namespace for option labels: t(`options.${optionNs}.${value}`) */ optionNs?: string; /** Whether option descriptions exist (uses `options.${optionNs}Desc.*` keys) */ hasDesc?: boolean; } /** Step grouping for the UDP onboarding flow */ export interface UdpOnboardingStepGroup { /** i18n key for section label */ label: string; /** Emoji character (e.g., '📝', '🏛️') rendered directly */ icon: string; /** Ordered list of field keys in this section */ fields: string[]; } export declare const UDP_ONBOARDING_FIELDS: Record; export declare const UDP_ONBOARDING_STEP_GROUPS: UdpOnboardingStepGroup[]; /** Get onboarding config for a single field. */ export declare function getUdpOnboardingFieldConfig(fieldKey: string | undefined): UdpOnboardingFieldConfig | undefined; /** Total number of main steps. */ export declare const UDP_TOTAL_MAIN_STEPS: number; /** Total number of sub-steps across all main steps. */ export declare const UDP_TOTAL_SUB_STEPS: number; //# sourceMappingURL=onboarding-config.d.ts.map