import { Logger } from '../utils/logger'; export interface LineageData { [docPath: string]: string[]; } export declare class LineageService { private logger; private lineagePath; private lineage; private lastGeneratedSha?; private projectRoot; constructor(logger: Logger, projectRoot?: string); /** * Loads the lineage data from disk. * Supports migration from legacy (raw map) to structured format. */ private load; /** * Saves the current lineage data to disk. */ save(): void; setLastGeneratedSha(sha: string): void; getLastGeneratedSha(): string | undefined; /** * Updates the lineage for a specific documentation file. * @param docPath Relative path to the documentation file (e.g. "docs/auth.md") * @param sourceFiles List of absolute or relative source file paths used to generate this doc */ track(docPath: string, sourceFiles: string[]): void; /** * Returns the list of source files used to generate a specific doc. */ getSources(docPath: string): string[]; /** * Returns all documentation files that depend on a given source file. * Used for reverse-lookup during check. */ getImpactedDocs(changedSourceFile: string): string[]; /** * Clears lineage for a doc (e.g. if deleted) */ remove(docPath: string): void; } //# sourceMappingURL=lineage-service.d.ts.map