/** * Shared helpers for regex-based source scanners. */ /** 1-based line number at a character index in file content. */ export declare function lineAt(content: string, index: number): number; /** Line number for a RegExp match, when `index` is present. */ export declare function lineFromMatch(content: string, match: RegExpMatchArray): number | undefined; export declare function matchAll(content: string, source: string, flags?: string): RegExpMatchArray[]; /** Non-global pattern test with 1-based line of first hit. */ export declare function testHit(pattern: RegExp, content: string): { hit: boolean; line?: number; }; /** Extract a route path from a human-readable artifact detail string. */ export declare function pathFromRouteDetail(detail: string): string | undefined; //# sourceMappingURL=scan-utils.d.ts.map