import { PromptKey } from 'i18n/types'; import { QuestionnaireState, QuestionnaireStateKey } from 'types/QuestionnaireState'; export type PromptKeyMap = { [key in QuestionnaireStateKey]?: PromptKey; }; /** * Map of field key → prompt-key (for i18n label lookup). * Memoized on the fields reference. Internally uses `getDerivedState` for * `isIndividual`; the sub-helpers take it as a param to avoid the cycle. */ export declare const getPromptKeyMap: (fields: QuestionnaireState) => PromptKeyMap; /** * Build the prompt-key-map from raw fields. Internal helper used by * `getDerivedState`; descriptors should read `promptKeyMap` from the * `getDerivedState(state)` result rather than calling this directly. * * Takes `isIndividual` as an explicit parameter because the caller * (`getDerivedState`) has already computed it — avoids the previous * circular dependency where this file called back into `getDerivedState`. */ export declare const buildPromptKeyMap: (data: QuestionnaireState, isIndividual: boolean) => PromptKeyMap;