/** * An ingested entry paired with its identity key (`realpathForMatch` of the * stored `filePath`). Only the fields the classifier reads are required, so the * caller's richer row type is consumed structurally. */ export interface KeyedIngestedEntry { entry: { filePath: string; chunkCount: number; timestamp: string; }; key: string; } /** * A classified source: a raw-data entry restored to its original `source`, or a * real-file / orphaned entry keyed by `filePath`. Structurally compatible with * the `SourceEntry` union both surfaces already return (no type-move refactor). */ export type ClassifiedSource = { source: string; chunkCount: number; timestamp: string; } | { filePath: string; chunkCount: number; timestamp: string; }; /** * Classify the ingested entries that matched no scanned file into `sources`. * * Under a `scope`, a managed raw-data entry is always emitted — it has no * filesystem path to be in or out of scope — while a real-file entry is kept * only when its stored path is in scope. An out-of-scope real file therefore * appears in neither `files[]` nor `sources[]`, rather than being * misreported as an orphan. */ export declare function classifyIngestedSources(ingestedKeyed: readonly KeyedIngestedEntry[], matchedKeys: ReadonlySet, dbPath: string, scope?: string[]): ClassifiedSource[]; //# sourceMappingURL=list-sources.d.ts.map