import { Locale, QuestionnaireState } from '../../types'; import { ButtonKey, OptionKey, PromptKey, StatusKey, SubOptionKey, SubPromptKey } from '../types'; /** * Map of `{token}` → value for substitution into translated strings. * Values are HTML-escaped by `interpolate` so user-supplied input is safe * even when the surrounding template contains HTML (which `JsxFromString` * will parse). See `./interpolate.ts` for the full contract. */ export type TextVars = Record; export declare const getPromptText: (key: PromptKey, locale: Locale | undefined, fields?: QuestionnaireState, vars?: TextVars) => string; export declare const getSubPromptText: (key: SubPromptKey, locale: Locale | undefined, vars?: TextVars) => string; export declare const getStatusText: (key: StatusKey, locale: Locale | undefined, fields?: QuestionnaireState, vars?: TextVars) => string; export declare const getBadgeText: (key: string, locale: Locale | undefined, vars?: TextVars) => string; export declare const getTextText: (key: string, locale: Locale | undefined, vars?: TextVars) => string; export declare const getTitleText: (key: string, locale: Locale | undefined, vars?: TextVars) => string; export declare const getSubTitleText: (key: string, locale: Locale | undefined, vars?: TextVars) => string; export declare const getButtonText: (key: ButtonKey, locale: Locale | undefined, vars?: TextVars) => string; export declare const getOptionText: (key: OptionKey | undefined, locale: Locale | undefined, vars?: TextVars) => string; export declare const getSubOptionText: (key: SubOptionKey | undefined, locale: Locale | undefined, vars?: TextVars) => string | undefined;