import { Arbitrary } from './definition/Arbitrary'; /** * Constraints to be applied on {@link array} * @public */ export interface ArrayConstraints { /** Lower bound of the generated array size */ minLength?: number; /** Upper bound of the generated array size */ maxLength?: number; } /** * For arrays of values coming from `arb` * @param arb - Arbitrary used to generate the values inside the array * @public */ declare function array(arb: Arbitrary): Arbitrary; /** * For arrays of values coming from `arb` having an upper bound size * * @param arb - Arbitrary used to generate the values inside the array * @param maxLength - Upper bound of the generated array size * * @remarks * Superceded by `fc.array(arb, {maxLength})` - see {@link https://github.com/dubzzz/fast-check/issues/992 | #992}. * Ease the migration with {@link https://github.com/dubzzz/fast-check/tree/master/codemods/2.4.0_explicit-min-max-length | our codemod script}. * * @public */ declare function array(arb: Arbitrary, maxLength: number): Arbitrary; /** * For arrays of values coming from `arb` having lower and upper bound size * * @param arb - Arbitrary used to generate the values inside the array * @param minLength - Lower bound of the generated array size * @param maxLength - Upper bound of the generated array size * * @remarks * Superceded by `fc.array(arb, {minLength, maxLength})` - see {@link https://github.com/dubzzz/fast-check/issues/992 | #992}. * Ease the migration with {@link https://github.com/dubzzz/fast-check/tree/master/codemods/2.4.0_explicit-min-max-length | our codemod script}. * * @public */ declare function array(arb: Arbitrary, minLength: number, maxLength: number): Arbitrary; /** * For arrays of values coming from `arb` having lower and upper bound size * @param arb - Arbitrary used to generate the values inside the array * @param constraints - Constraints to apply when building instances * @public */ declare function array(arb: Arbitrary, constraints: ArrayConstraints): Arbitrary; export { array };