import { FormSize } from '../@Types/Form'; import { ApiSelector, CheckBox, ClassifierSelector, EntityValuePicker, FormSelector, FormStep } from '../@Types/FormStep'; import { AYFFormStep } from '../@Types/AYFFormStep'; import { CBRFormStep } from '../@Types/CBRFormStep'; import { Condition } from '../@Types/Condition'; import { DependencyStore } from '../Form/Form'; import { Entity } from '../@Types/Entity'; export type FillerSteps = FormSelector | ClassifierSelector | EntityValuePicker | ApiSelector | CheckBox; export declare function calcFillerSize(step: FillerSteps, steps: Record, values: Record, size: FormSize): number; export declare const calcStepWidth: (stepSize: 1 | 2 | 3 | 4, size: FormSize) => number; export declare const calcDefaultValue: (step: FormStep | CBRFormStep) => any; export declare const iterateNestedSteps: (idStep: string, steps: Record, iteration: (step: FormStep, path: string[]) => void, path?: string[]) => void; /** * Utility function to calc the substeps of a step * @param step step to calc the substeps * @param idModifier optional modifier for the ids of the substeps and all other properties * @returns list of the ids of the substeps of the step, if modifier returns modified steps */ export declare const calcSubSteps: (idStep: string, allSteps: Record, idModifier?: ((idSubStep: string) => string) | undefined) => string[]; export declare const evaluateCondition: (condition: Condition, dependencies: DependencyStore, entityValue?: { entity?: Entity | undefined; entityValue: { _id: string; value: string; } & { [key: string]: any; }; } | undefined) => boolean; export declare function getRelativeDate(nDays?: number, nHours?: number, nMinutes?: number, subtract?: boolean, date?: Date): Date;