import type { MonographDb } from '../storage/db.js'; /** * The source-selection domain a graph was built with. `code` is what a * `codeOnly: true` scan looks at (files with a parseable code extension); * `all` additionally covers documents, markdown, config and other text files. * * The scope is persisted with the index so a later refresh reuses it instead of * silently narrowing coverage, and so the orphan sweep can tell "this file was * deleted" apart from "this file was never in the scan's domain". */ export type IndexScope = 'code' | 'all'; export declare function scopeForOptions(codeOnly: boolean): IndexScope; /** The scope the stored graph was last built with, or null if never recorded. */ export declare function readIndexScope(db: MonographDb): IndexScope | null; export declare function writeIndexScope(db: MonographDb, scope: IndexScope): void; /** * Whether `filePath` belongs to the source domain a build at `scope` actually * scans. Rows outside the current scope's domain were produced by a wider * earlier build and must be left alone — a code-only refresh never looked at * those files, so their absence from its file list is not evidence of deletion. */ export declare function isWithinScope(filePath: string, scope: IndexScope): boolean; //# sourceMappingURL=index-scope.d.ts.map