import type { RepositoryGraphSnapshot } from '@neurcode-ai/contracts'; import { BrainFileNode, BrainRepositoryMap } from '@neurcode-ai/core'; import type { IncrementalIndexOptions, IncrementalIndexStats } from './incremental'; export interface BuildBrainOptions { changedFiles?: string[]; maxFiles?: number; persist?: boolean; } export declare function getBrainMapPath(projectRoot: string): string; export declare function loadBrainRepositoryMap(projectRoot: string): BrainRepositoryMap | null; export declare function saveBrainRepositoryMap(projectRoot: string, map: BrainRepositoryMap): void; /** * Read-only V1 compatibility projection. Repository Graph V2 remains the sole * indexed authority; this function never scans source or manufactures facts. */ export declare function projectRepositoryGraphToBrainMap(projectRootInput: string, graph: RepositoryGraphSnapshot): BrainRepositoryMap; export declare function emptyBrainRepositoryMap(projectRootInput: string): BrainRepositoryMap; export declare function buildBrainRepositoryMap(projectRootInput: string, options?: BuildBrainOptions): BrainRepositoryMap; export declare function getModuleForFile(map: BrainRepositoryMap, filePath: string): string; export declare function getFileNode(map: BrainRepositoryMap, filePath: string): BrainFileNode | null; /** * Drop-in replacement for buildBrainRepositoryMap() when dealing with large repos (50k+ files). * Uses IncrementalIndexer to discover and process files in chunks, avoiding OOM on huge codebases. * * Key differences from buildBrainRepositoryMap: * - Files are processed in chunks (default 500 at a time) * - Hash cache tracks which files changed, skipping unchanged ones * - Memory pressure causes early termination with truncated=true rather than OOM crash * - Returns both the map and indexing stats */ export declare function buildBrainIncrementally(projectRootInput: string, options?: BuildBrainOptions & IncrementalIndexOptions): Promise<{ map: BrainRepositoryMap; stats: IncrementalIndexStats; }>; export { IncrementalIndexer, runIncrementalBrainIndex } from './incremental'; export type { IncrementalIndexOptions, IncrementalIndexStats, FileHashCache } from './incremental'; export { AtomicJsonRepositoryGraphStore, RepositoryGraphLockedError, RepositoryGraphV2Indexer, SqliteRepositoryGraphStore, analyzeRepositorySource, createQueryableRepositoryGraphStore, createRepositoryGraphStore, exportRepositoryGraphJson, explainRepositoryGraph, indexRepositoryGraph, legacyRepositoryGraphBackupPath, legacyRepositoryGraphPath, queryStoredRepositoryGraphEdges, queryStoredRepositoryGraphNodes, queryRepositoryGraph, readRepositoryGraph, readRepositoryGraphMetadata, recoverRepositoryGraph, repositoryGraphBackupPath, repositoryGraphLockPath, repositoryGraphPath, repositoryGraphStatus, repositoryGraphV2Defaults, resolveReadStoreSelection, resolveRepositoryGraphStoreMode, resolveStoreModeForTrackedFiles, selectRepositoryGraphStore, AUTO_STORE_TRACKED_FILE_THRESHOLD, } from './repository-graph-v2'; export { buildGraphCoverageAuthority, planRepositoryGraphLimits, summarizeOmittedPackages, summarizeOmittedPathPrefixes, type GraphCoverageAuthority, type GraphImpactAuthority, } from './graph-coverage-authority'; export { buildLanguageCoverageMatrix, type BuildLanguageCoverageMatrixInput, } from './language-coverage-matrix'; export { analyzePythonStructural, pythonExecutable, PARSER_ID_AST, PARSER_ID_REGEX } from './python-structural-ast'; export { resolvePythonImports, importEdgeAuthorityClass, } from './python-import-resolver'; export type { PythonImportResolution, PythonImportResolutionKind, PythonImportResolutionSummary, ImportEdgeAuthorityClass, } from './python-import-resolver'; export { buildPythonTestEdges, evaluatePythonRequiredTest, isPythonTestFile, } from './python-test-edges'; export type { PythonTestEdgeResult, RequiredTestTruth, RequiredTestVerdict, } from './python-test-edges'; export { OWNED_PROCESS_SCHEMA_VERSION, acquireOwnedFile, createOwnedProcessIdentity, inspectOwnedProcess, processExists, processGroupId, processStartFingerprint, readOwnedProcessIdentity, reclaimAbandonedOwnedFile, releaseOwnedFile, } from './process-identity'; export type { OwnedProcessIdentity, OwnedProcessState, } from './process-identity'; export type { QueryableRepositoryGraphStore, RepositoryGraphBackend, RepositoryGraphQueryResult, RepositoryGraphStoreMode, RepositoryGraphStoreSelection, RepositorySourceAnalysis, StoredGraphEdgeQuery, StoredGraphNodeQuery, } from './repository-graph-v2'; export { buildRepositoryContextPackage, validatePlanAgainstRepositoryContext, type BuildRepositoryContextPackageInput, } from './repository-context-package'; export { TYPESCRIPT_PROGRAM_INTELLIGENCE_VERSION, buildTypeScriptProgramIntelligence, type TypeScriptProgramIntelligenceResult, type TypeScriptProgramRelationship, } from './typescript-program-intelligence'; export { PROGRESSIVE_AUTHORITY_FILE, fingerprintRepositoryFiles, progressiveAuthorityPath, publishStructuralAuthority, readProgressiveAuthority, writeProgressiveAuthority, } from './progressive-authority'; export { SEMANTIC_SLICE_STORE_FILE, buildFullSemanticEnrichment, buildPlanSemanticSlice, type BuildSemanticSliceOptions, type FullSemanticEnrichmentOptions, type SemanticSlicePlan, } from './semantic-slice'; export { fingerprintStoredRepositoryGraph, NativeGraphStoreUnavailableError, probeNativeGraphStore, } from './repository-graph-sqlite'; export { LocalStructuralSemanticAdvisoryProvider, SemanticAdvisoryRegistry, runSemanticAdvisory, semanticAdvisoryCacheKey, semanticAdvisoryRegistryPath, } from './semantic-advisory-v2'; export type { SemanticAdvisoryRegistryData, SemanticAdvisoryStatus, SemanticFeedbackOutcome, } from './semantic-advisory-v2'; export { buildRepositoryChangeBrief, buildRepositoryChangeBriefForRepo, repositoryChangeBriefCanonicalHash, verifyRepositoryChangeBriefReplay, } from './repository-understanding-v1'; export type { BuildRepositoryChangeBriefInput, BuildRepositoryChangeBriefForRepoInput, RepositoryUnderstandingTask, } from './repository-understanding-v1'; //# sourceMappingURL=index.d.ts.map