/** * `codebase-stats` tool — report index health and statistics. * * Usage: codebase-stats({}) * * Returns: { totalSymbols, totalFiles, byLang, byKind, lastIndexed, sizeBytes, version } */ import type { Tool } from '@wrongstack/core/types'; /** * `codebase-stats` takes no arguments (its JSON schema is * `properties: {}, additionalProperties: false`). Expressed as a type alias * rather than an empty interface, which is structurally `{}` — a type that * accepts any non-nullish value and is flagged by `noEmptyInterface`. */ export type CodebaseStatsInput = Record; export declare const codebaseStatsTool: Tool; export interface CodebaseStatsOutput { totalSymbols: number; totalFiles: number; byLang: Record; byKind: Record; lastIndexed: number | null; sizeBytes: number; indexPath: string; version: number; /** False when lifecycle state was returned without opening the SQLite index. */ statsAvailable: boolean; /** Present while an index build or refresh is active. */ indexing?: { currentFile: number; totalFiles: number; } | undefined; /** Non-empty when the index is not ready or is still building. */ indexStatus?: string | undefined; } //# sourceMappingURL=codebase-stats-tool.d.ts.map