import { Parser } from "./index"; import { IParser, OnParse } from "./interfaces"; /** * Given an object, we want to make sure the key exists and that the value on * the key matches the parser * Note: This will mutate the value sent through */ export declare class ArrayOfParser implements IParser { readonly parser: Parser; readonly description: { readonly name: "ArrayOf"; readonly children: readonly [Parser]; readonly extras: readonly []; }; constructor(parser: Parser, description?: { readonly name: "ArrayOf"; readonly children: readonly [Parser]; readonly extras: readonly []; }); parse(a: unknown, onParse: OnParse): C | D; } /** * We would like to validate that all of the array is of the same type * @param validator What is the validator for the values in the array */ export declare function arrayOf(validator: Parser): Parser;