import type { FieldRestrictionArrayTestFunction, FieldRestrictionSingleValueTestFunction } from '../FieldRestrictionTest'; /** * Given a function that will apply a fieldRestriction validation test to a single value, this function will * create a new function that will apply that test to every element of an array. The new function returns an * object that includes a list of invalid items and which position they hold in the array. * @param test * @param errorMessage Message to display when there are one or more invalid items in the array. * This can be a string, or a function generates a message from the details of the specific FieldRestrictionRule. * @returns */ export declare const createFieldRestrictionTestForArrays: (test: FieldRestrictionSingleValueTestFunction, errorMessage: string | ((rule: Rule) => string)) => FieldRestrictionArrayTestFunction;