/** * CRUD for the `symbols` table. * * All inserts require a non-empty `fileSha`. The adapter boundary returns * symbols without a SHA; the indexer stamps the SHA before handing off * to storage. */ import { type Symbol as AtlasSymbol, type SymbolId } from "../types.js"; import type { DatabaseInstance } from "./db.js"; export declare function upsertSymbol(db: DatabaseInstance, symbol: AtlasSymbol): void; export declare function upsertSymbols(db: DatabaseInstance, symbols: readonly AtlasSymbol[]): void; export declare function getSymbol(db: DatabaseInstance, id: SymbolId): AtlasSymbol | null; export declare function getSymbolsByName(db: DatabaseInstance, name: string): AtlasSymbol[]; export declare function getSymbolsByPath(db: DatabaseInstance, path: string): AtlasSymbol[]; /** * Delete every symbol row for a given source file path. Used by incremental * reindex when a file changes — drop all its symbols and re-insert the * current set. Cascades to `claim_symbols` entries referencing those IDs. */ export declare function deleteSymbolsByPath(db: DatabaseInstance, path: string): number; export declare function listAllSymbols(db: DatabaseInstance): AtlasSymbol[]; export declare function clearSymbols(db: DatabaseInstance): void; //# sourceMappingURL=symbols.d.ts.map