import type { LunaticVariablesStore } from '../use-lunatic/commons/variables/lunatic-variables-store'; import type { LunaticSource } from '../type.source'; /** * Retrieve the multimode state * * ## Why this hook * * The goal of this hook is to provide insights about a roundabout using extra information inserted in the JSON source * provided to Lunatic. * * For instance * * ``` * { * "multimode": { * "questionnaire": { * "rules": { * "IS_MOVED": { * "type": "VTL", * "value": "nvl(HABITEZ_VOUS_ICI, true)" * }, * } * }, * "leaf": { * "source": "id-roundabout-in-questionnaire", * "rules": { * "IS_MOVED": { * "type": "VTL", * "value": "nvl(PRENOM_HABITE_PLUS_LA, false)" * }, * } * } * }, * } * ``` * * Run the expression to check if rules are true or false. A rule is considered as true if at least one expression is evaluated to true * * ``` * { * "IS_MOVED": true * } * ``` */ export declare function useMultimode(source: LunaticSource, store: LunaticVariablesStore): { getMultimode: () => { [k: string]: boolean; }; };