import { Parser } from './parser';
export declare abstract class ChainParser
> implements Pick, 'supports'> {
/** All the parsers in this chain. */
protected parsers: Set;
/** A simple node cache to increase the performance at parse() when getting the correct parser */
protected cache: WeakMap[0], P>;
/** Adds a parser to this chain. */
add(parser: P): this;
/** Checks if the given node is supported by any of the parsers and caches the result. */
supports(node: Parameters[0]): Promise;
}
//# sourceMappingURL=chain.d.ts.map