elearning/Frontend-Learner/node_modules/eslint-plugin-regexp/dist/utils/regexp-ast/common.d.ts
2026-01-13 10:48:02 +07:00

11 lines
714 B
TypeScript

import type { Alternative, CapturingGroup, Element, Node, Pattern, RegExpLiteral } from "@eslint-community/regexpp/ast";
import type { FirstConsumedChar, MatchingDirection, ReadonlyFlags } from "regexp-ast-analysis";
export type ShortCircuit = (aNode: Node, bNode: Node) => boolean | null;
export declare function getFirstConsumedCharPlusAfter(element: Element | Alternative, direction: MatchingDirection, flags: ReadonlyFlags): FirstConsumedChar;
export interface CapturingGroups {
groups: CapturingGroup[];
names: Set<string>;
count: number;
}
export declare function extractCaptures(pattern: RegExpLiteral | Pattern): CapturingGroups;
export declare function hasCapturingGroup(node: Node): boolean;