import { AbstractObjectSchema, ObjectSchemaI } from "./schema"; /** * Schema for Array */ export declare class ArrayObjectSchema extends AbstractObjectSchema { /** * Creates array schema * @param itemsSchema Schema for the array items * @returns a new instance of ArrayObjectSchema */ static create(itemsSchema: ObjectSchemaI): ArrayObjectSchema; private schema; /** * Constructor */ constructor(itemsSchema: ObjectSchemaI); /** * Sets default value, in case the object is null, undefined or cannot be parsed * @param defaultValue The default value * @returns self */ withDefaultValue(defaultValue: any[]): ArrayObjectSchema; /** * Sets max length for the array. If the array length is greater than this value, it will be truncated. * @param maxLength The max length for the array. * @returns self */ withMaxLength(maxLength: number): ArrayObjectSchema; /** * Sets the ID for this schema to be referenced by its children * for recursion * @param id The identifier of the schema node * @returns self */ withId(id: string): ArrayObjectSchema; }