interface ReviewDepsMarker { paths: string[]; raw: string; } interface ResolvedReviewDependencies { patterns: string[]; /** Repo-relative files, without selectors. */ targets: string[]; /** * Selectors per target that is declared only through selectors * (`package.json#scripts`). A target declared as a whole file has no entry here. */ selectors: Record; } /** * A declared dependency: a path or glob, optionally narrowed by a selector to one JSON key path * (`file.json#a.b`), one Markdown section (`doc.md#install`), or one symbol (`src/run.ts#parseArgs`). */ interface ReviewDependencyRef { path: string; selector: string | null; } export declare function parseReviewDependency(pattern: string): ReviewDependencyRef; /** Parse review dependency markers outside fenced and inline code. */ export declare function parseReviewDepsMarkers(content: string): ReviewDepsMarker[]; export declare function reviewDependencyPatterns(content: string): string[]; export declare function isReviewDependencyGlob(pattern: string): boolean; export declare function isSafeReviewDependencyPath(value: string): boolean; /** Resolve all declared paths against the repository, without scan-perimeter filtering. */ export declare function resolveReviewDependencies(root: string, patterns: string[]): ResolvedReviewDependencies; /** Path matching ignores a selector: any change to the file pulls the document into validation. */ export declare function reviewDependencyMatchesPath(pattern: string, relPath: string): boolean; export {};