import type { OpenApi } from "@typia/interface"; /** * Generate a random array from an array schema. * * The length is drawn between the bounds, with a default minimum of one, or * zero on a recursive cycle. For a unique array the count is a preference above * the minimum: drawing stops at the total attempt budget or, after reaching the * minimum, a run of duplicates. A result below the minimum throws even when * enough distinct values exist but were not observed within that budget. * * The optional source supplies draws in [0, 1); it defaults to the platform * source resolved when this helper is called. Nested draws use the same * source. * * @evidence contracts/common.md#principled-implementation The length is drawn between the schema's bounds with a default minimum of one, or zero on a recursive cycle so graph-shaped data ends, and elements come from the supplied callback. Unique generation stops at the requested count, count * 100 + 1000 total attempts, or sixty-four consecutive duplicates after the minimum is met. These bounded observations do not prove domain exhaustion; a result below the minimum throws even if the callback could produce more distinct values. A returned result always meets the minimum, while the chosen count is a preference above it. * @evidence contracts/common.md#clear-and-simple-design One function with a plain branch and a unique branch; defaults are module constants. * @evidence contracts/common.md#prohibited-implementation-shortcuts The unique branch accepts a result shorter than the preferred count when it meets the minimum. Failure means the minimum was not observed within the finite attempt budget, rather than proving it unreachable; no callback domain is inferred from repeated duplicates. * @evidence contracts/common.md#meaningful-documentation The doc states the length rule, the unique-draw budget and the stale limit, and the module comments explain the reasoning. */ export declare const _randomArray: (props: Omit & { element: (index: number, count: number) => T; recursive?: boolean; }, source?: () => number) => T[];