import type { ActiveFilter, LunaticChangesHandler, LunaticComponentDefinition, LunaticOptions, LunaticReducerState, LunaticState } from '../../type'; import type { LunaticComponentProps } from '../../../components/type'; import { LunaticLogger } from '../../logger/type'; import { VTLScalarExpression } from '../../../type.source'; export type FillComponentArgs = { disableFiltersDescription?: true; activeFilters?: ActiveFilter; handleChanges: LunaticChangesHandler; executeExpression: LunaticReducerState['executeExpression']; goToPage: LunaticState['goToPage']; goNextPage: LunaticState['goNextPage']; goPreviousPage: LunaticState['goPreviousPage']; shortcut: LunaticOptions['shortcut']; management: LunaticOptions['management']; preferences: LunaticOptions['preferences']; pager: LunaticReducerState['pager']; variables: LunaticReducerState['variables']; logger: LunaticLogger; }; /** * To make this work with TypeScript we need to call function in succession, we prefer expressiveness here over generalized approach */ export declare const fillComponent: (component: LunaticComponentDefinition, state: FillComponentArgs, parentConditionFilter?: any, parentReadOnly?: any) => LunaticComponentProps & { conditionFilter?: boolean; }; /** * Fill components with values coming from the state, and interpret VTL expression */ export declare function fillComponents(components: LunaticComponentDefinition[], state: FillComponentArgs, parentType?: LunaticComponentDefinition['componentType'], parentConditionFilter?: VTLScalarExpression, parentReadOnly?: VTLScalarExpression): LunaticComponentProps[];