import type { RegexPattern } from "./parse.js"; export type RegexMatch = { index: number; text: string; captures: (string | undefined)[]; }; export declare function matchRegex(pattern: RegexPattern, input: string, lastIndex?: number): RegexMatch | null; export declare function matchRegexFrom(pattern: RegexPattern, input: string, startIndex: number): RegexMatch | null;