elearning/Frontend-Learner/node_modules/eslint-plugin-regexp/dist/utils/refa.d.ts

9 lines
528 B
TypeScript
Raw Normal View History

2026-01-13 10:46:40 +07:00
import type { CharSet } from "refa";
import { JS } from "refa";
import type { ReadonlyFlags } from "regexp-ast-analysis";
import type { RegExpContext } from ".";
export declare function getJSRegexppAst(context: RegExpContext, ignoreSticky?: boolean): JS.RegexppAst;
export declare const getParser: (key: RegExpContext) => JS.Parser;
export declare function assertValidFlags(flags: ReadonlyFlags): asserts flags is JS.Flags;
export declare function toCharSetSource(charSetOrChar: CharSet | number, flags: ReadonlyFlags): string;