import { Parser } from "./index"; import { IParser, OnParse, ParserInto } from "./interfaces"; export type TupleParserInto = T extends [infer A] | readonly [infer A] ? [ParserInto] : T extends [infer A, ...infer B] | readonly [infer A, ...infer B] ? [ ParserInto, ...TupleParserInto ] : never; export declare class TupleParser[]> implements IParser> { readonly parsers: A; readonly lengthMatcher: Parser; readonly description: { readonly name: "Tuple"; readonly children: A; readonly extras: readonly []; }; constructor(parsers: A, lengthMatcher?: Parser, description?: { readonly name: "Tuple"; readonly children: A; readonly extras: readonly []; }); parse(input: unknown, onParse: OnParse, C, D>): C | D; } export declare function tuple[]>(...parsers: A): Parser>;