import { type StandardSchemaV1 } from "../../Validate/standardSchema"; import type { ValidateCoreReturnType, ValidateType } from "../../Validate/type"; export type ArrayOfExtractValidatedType = V extends (value: never) => { type: infer T; } ? ValidateType : never; /** * Creates an array validator that validates every element with a single validator * @template V - The validator function applied to each element (its return `type` field carries the element type) * @param {V} validator - Validator applied to each element (e.g. an object validator) * @param {string} [message] - Custom error message for array type validation * @returns {Function} - Validator function for arrays whose elements satisfy the given validator */ export declare const arrayOf: { type: unknown; message: string; validate: boolean; }>(validator: V, message?: string) => ((values: ArrayOfExtractValidatedType[]) => ValidateCoreReturnType[]>) & StandardSchemaV1[], ArrayOfExtractValidatedType[]>;