import { LunaticSource } from '../../type'; import { LunaticVariable } from './lunatic-variables-store'; import { IterationLevel } from './models'; /** Key used by the global dependencies map to store specific dependency. */ export declare enum PairwiseGlobalDependency { Links = 0, Name = 1, Gender = 2 } /** * Manually setup the available pairwise global variables thanks to known * business rules. * * The variables information (necessary for the setup) are only returned if * there is a pairwise component in the provided source. */ export declare function computePairwiseGlobalVariables(source: LunaticSource): { name: string; dependencies: string[]; globalDependencies: Map; shapeFrom?: string; }[]; /** * Compute the value of the pairwise global variable. * * It the variable name does not exist or if the value does not exist, it will * return undefined. */ export declare function computePairwiseGlobalVariableValue(variableName: string, iteration: IterationLevel, globalDependencies: Map, dictionary: Map): string | undefined;