import type { Cursor } from '../../parser/types'; import type { Checkpoint, Matcher, TreeMatcherHandler, TreeMatcherType, TreeOptionsBase } from '../types'; import { AbstractMatcher } from './abstract-matcher'; interface TreeMatcherOptions extends TreeOptionsBase { matcher: Matcher | null; } export declare class TreeMatcher extends AbstractMatcher { readonly type: TreeMatcherType | null; readonly matcher: Matcher | null; readonly maxDepth: number; readonly maxMatches: number; readonly preHandler: TreeMatcherHandler; readonly postHandler: TreeMatcherHandler; private walkDepth; private matchCount; constructor(config: TreeMatcherOptions); walkToNextSignificantNode(cursor: Cursor): Cursor | undefined; walkToNextMatch(context: Ctx, cursor: Cursor | undefined): Checkpoint | undefined; match(checkpoint: Checkpoint): Checkpoint | null; } export {}; //# sourceMappingURL=tree-matcher.d.ts.map