import type { SourceGraphDTO } from './semantic.js'; /** * Every file whose change can alter what `file` means: the file itself plus * everything it imports, transitively. */ export declare function affectingFiles(file: string, graph?: SourceGraphDTO): Set; /** * Whether any changed file is one the given files depend on. * * `dependencies` is the already-expanded closure — a view's `sourceFiles`, or * the result of `affectingFiles` for a single file. An empty closure never * matches: a surface that cannot state what it depends on should not claim * every change as its own. */ export declare function changeAffects(changedFiles: readonly string[], dependencies: Iterable): boolean; /** * The subset of `changedFiles` the dependency closure actually covers, for * telling the user which file moved rather than only that something did. */ export declare function affectedBy(changedFiles: readonly string[], dependencies: Iterable): string[]; //# sourceMappingURL=source-affinity.d.ts.map