import type { Schema, Infer } from '../base.ts'; import { SCHEMA_KIND } from '../base.ts'; /** * Schema for validating arrays with typed elements. * Validates each element and collects all validation errors with array indices in paths. * * @template T - The schema type for array elements * * @example * ```typescript * const tagsSchema = s.array(s.string()); * const tags = tagsSchema.parse(['tag1', 'tag2']); * * const usersSchema = s.array(s.object({ * name: s.string(), * age: s.number() * })); * ``` */ export declare class ArraySchema> implements Schema>, Array>> { private itemSchema; readonly [SCHEMA_KIND] = "ArraySchema"; description?: string; private parseMethods; constructor(itemSchema: T); readonly '~standard': { version: 1; vendor: string; validate: (value: unknown) => import("@agentuity/core").StandardSchemaV1.FailureResult | import("@agentuity/core").StandardSchemaV1.SuccessResult[]>; types: { input: Array>; output: Array>; }; }; describe(description: string): this; optional(): import("../index.ts").OptionalSchema; nullable(): import("../index.ts").NullableSchema; parse: (this: Schema[]>, value: unknown) => Infer[]; safeParse: (this: Schema[]>, value: unknown) => import("../base.ts").SafeParseResult[]>; } /** * Create an array schema with typed elements. * * @param itemSchema - The schema for validating each array element * * @example * ```typescript * const stringArray = s.array(s.string()); * const tags = stringArray.parse(['tag1', 'tag2']); * * const userArray = s.array(s.object({ * name: s.string(), * age: s.number() * })); * ``` */ export declare function array>(itemSchema: T): ArraySchema; //# sourceMappingURL=array.d.ts.map