import Runtype, { type Parsed, type Static } from "./Runtype.js"; import Spread from "./Spread.js"; /** * Validates a value is an array of the given element type. * * Possible failures: * * - `TYPE_INCORRECT` for non-arrays * - `CONTENT_INCORRECT` with `details` reporting the failed elements */ interface Array extends Runtype[], Parsed[]>, Iterable>> { tag: "array"; element: R; asReadonly: () => Array.Readonly; } declare namespace Array { interface Readonly extends Runtype[], readonly Parsed[]>, Iterable>> { tag: "array"; element: R; } } declare const Array: (element: R) => Array; export default Array;