import type { LunaticError, LunaticReducerState } from '../type'; import { type ComponentDefinition, type InterpretedComponent } from './component'; export type StateForControls = Pick; /** * Figure out the number of iterations of a component. */ export declare function computeIterations(component: InterpretedComponent | ComponentDefinition, executeExpression: LunaticReducerState['executeExpression']): number; /** * Check controls for currently visible components and output errors. */ export declare function compileControls(state: StateForControls): { currentErrors: Record | undefined; isCritical: boolean; };