import type { ChangeEvent } from 'react'; import type { Validates, Validator, FieldOutput, FieldBag, FormMapping, Field, FormError, DynamicListBag } from './types'; export declare function isField(input: any): input is Field; export declare function mapObject(input: any, mapper: (value: any, key: any) => any): Output; export declare function normalizeValidation(input: Validates): Validator[]; export declare function isChangeEvent(value: any): value is ChangeEvent; export declare function propagateErrors(fieldBag: { [key: string]: FieldOutput; }, errors: FormError[]): void; export declare function reduceFields(fieldBag: FieldBag, reduceFn: (accumulator: V, currentField: Field, path: (string | number)[], fieldBag: FieldBag) => V, initialValue?: V, reduceEmptyFn?: (accumulator: V, value: any, path: (string | number)[], fieldBag: FieldBag) => V): V; export declare function fieldsToArray(fieldBag: FieldBag): Field[]; export declare function validateAll(fieldBag: FieldBag): FormError[]; export declare function getValues(fieldBag: T): FormMapping; export declare function getDirtyValues(fieldBag: T): any; export declare function noop(): void; export declare function shallowArrayComparison(arrA: unknown[], arrB: any): boolean; export declare function defaultDirtyComparator(defaultValue: Value, newValue: Value): boolean; export declare function makeCleanFields(fieldBag: FieldBag): void; export declare function makeCleanDynamicLists(dynamicLists?: DynamicListBag): void; //# sourceMappingURL=utilities.d.ts.map