/** * Sample symbol discovery helper for A6 deep LSP health check (v0.6 * Step 3.2 per Q3.0.2 lock at v0.6 Step 3.0). * * Walks repo for first source file matching adapter extensions, * lists its symbols via adapter, returns first symbol for * findReferences traversal in deep health check. Per Q3.0.2 lock: * 1 symbol per language adapter detected; runtime discovery from * actual repo state (Adjudication 1 lock at v0.6 Step 3.2 surface * review; matches v0.5+ candidate #6 motivating example — gopls * workspace-load failure surfaces only when running against actual * user-repo state). */ import type { LanguageAdapter, Symbol as AtlasSymbol } from "../../types.js"; /** * Returns first source file + first symbol matching adapter.extensions * found via repo walk; null if no eligible file/symbol found. * * Returning null is normal operating state (warns in doctor verbose * output rather than fails) — empty repo / new project / pre-extraction * state where adapter.listSymbols hasn't anything to return. */ export declare function findSampleSymbol(adapter: LanguageAdapter, repoRoot: string): Promise<{ file: string; symbol: AtlasSymbol; } | null>; /** * Walks repoRoot for source files matching extensions, up to maxDepth * deep. Returns paths relative to repoRoot per LSP adapter convention. * Synchronous walk for simplicity; deep health check is doctor-time * (interactive) not server-runtime so wall-clock cost negligible. * * Exported for reuse by state-detection.ts (v0.6 Step 3.3 H5 code- * dimension detection per Q3.3.3 lock). */ export declare function walkForSourceFiles(repoRoot: string, extensions: Set, maxDepth: number): string[]; //# sourceMappingURL=sample-symbol.d.ts.map