import { buildCodebaseIndex, buildCodebaseIndexWithStats, parseCodeFiles, assembleCodebaseIndex, assembleCodebaseIndexCooperative, DEFAULT_PARSE_CONCURRENCY } from './code/build.js';
import { createCodeQuerySession, createCodeQuerySessionFromIndex } from './code/session.js';
import { openChunkCodeIndexStore, openCodeIndexStore } from './code/store.js';
import { chunkCodebase, chunkFromIndex, chunkFromIndexCooperative, chunkFromIndexStreaming } from './code/chunk.js';
import { discoverCodeFiles } from './code/discover.js';
import { previewCodebaseSize } from './code/preview.js';
import { buildCodebaseIndexIsolated, chunkFromStoreIsolated } from './code/isolated.js';
import { checkCodeSyntax } from './code/check.js';
import { parseSlimIndex, slimifyIndex, slimifyIndexCooperative, tryParseSlimIndex, validateSlimIndex } from './code/slim.js';
import { summarizeModule, toMermaid } from './code/query.js';
import { searchSymbols } from './code/search.js';
import { buildCodeContext } from './code/context.js';
import { buildChangedRepoMap, buildRepoMap } from './code/map.js';
import { buildDirectoryTree } from './code/tree.js';
import { readCodeSource } from './code/source.js';
import { rankNodes, rankNodesCached } from './code/rank.js';
import { computeCodeDiff } from './code/diff.js';
import { getGitChangedFiles, getGitChurnSummary, getGitCochange, getGitCommitHistory, getGitDiffFunctionContext, getGitDiffHunks, getGitDiffPatch, getGitDiffSummary, getGitFileHistory, resolveGitRange } from './git/api.js';
import { inspectDocument } from './doc/inspect.js';
import { discoverDocuments } from './doc/discover.js';
import { chunkDocument, chunkDocumentFromMarkdown } from './doc/chunk.js';
import { inspectWorkbook } from './sheet/inspect.js';
import { inspectPresentation } from './slide/inspect.js';
import { inspectTables } from './table/inspect.js';
import { analyzeWorkspace } from './workspace/analyze.js';
import { describeWorkspace } from './workspace/describe.js';
import { inspectWorkspaceDocumentSet } from './workspace/documents.js';
import { prepareWorkspaceContext } from './workspace/prepare.js';
import { bundleWorkspace, bundleWorkspaceIsolated } from './workspace/bundle.js';
import { health } from './health.js';
export type { CodebaseIndex, CodeNode, CodeEdge, CodeNodeType, CodeEdgeType, DirectoryTreeEntry, DirectoryTreeMode, DirectoryTreeOptions, DirectoryTreeResult, DirectoryTreeSymbol, IndexTruncation, NormalizedSymbolKind, } from './code/types.js';
export type { ManifestDiff, ManifestEntry, ChangedFileStat } from './code/incremental.js';
export type { CodeQuerySession, CodeSessionChunkOptions } from './code/session.js';
export type { CodeIndexStore, CodeIndexStoreOptions, StoreFreshness, StoreStrategy, StoreMetadata, StoreSessionOptions, StoreChunkIsolatedOptions, } from './code/store.js';
export type { CodeChunk, CodeChunkOptions, CodeChunkStreamingOptions } from './code/chunk.js';
export type { BuildCodebaseOptions, BuildCodebaseResult, BuildFileStat, CodeIndexBudget, BudgetExceededBehavior, ParseCodeFilesOptions, ParseCodeFilesResult, AssembleCodebaseIndexInput, } from './code/build.js';
export type { BuildCodebaseIndexIsolatedOptions, ChunkFromStoreIsolatedOptions, SerializableCodeChunkOptions, } from './code/isolated.js';
export type { CodebaseIndexSlim, SlimParsedFile } from './code/slim.js';
export type { CodebaseSizePreview, PreviewCodebaseSizeOptions } from './code/preview.js';
export type { ModuleSummary, ModuleSummaryOptions, MermaidKind, MermaidOptions } from './code/query.js';
export type { ChangedRepoMapOptions, ChangedRepoMapRange, RepoMapChangeContext, RepoMapOptions, RepoMapResult, RepoMapEntry, RepoMapSymbol, RepoMapFormat, RepoMapMode, RepoMapFocus, RepoMapFocusResult, } from './code/map.js';
export type { BuildDirectoryTreeOptions } from './code/tree.js';
export type { CodeSourceCandidate, ReadCodeSourceOptions, ReadCodeSourceQuery, ReadCodeSourceResult, } from './code/source.js';
export type { CheckCodeSyntaxOptions, CheckCodeSyntaxResult, CodeSyntaxDiagnostic } from './code/check.js';
export type { RankOptions, RankResult, RankedNode, RankedFile, RankEdgeWeights } from './code/rank.js';
export type { ChangedSymbol, CodeDiffOptions, CodeDiffResult, FileChange } from './code/diff.js';
export type { GitChangedFile, GitChurnEntry, GitChurnSummary, GitCochangePair, GitCochangeSummary, GitCommit, GitCommitHistory, GitDiffHunk, GitDiffHunks, GitDiffPatch, GitDiffSummary, GitFileHistory, GitFileHistoryEntry, GitFileHunks, GitFileStatus, GitNumstat, GitRange, GitRangeKind, GitRepoInfo, } from './git/types.js';
export type { GitChurnOptions, GitCochangeOptions, GitContextOptions, GitFileHistoryOptions, GitHistoryOptions, GitPatchOptions, } from './git/api.js';
export type { GitErrorCode, ResolveDiffRangeOptions, RunGitOptions, RunGitRawResult, RunGitResult, } from './git/client.js';
export type { DocumentChunk, DocumentChunkOptions, ChunkDocumentFromMarkdownOptions } from './doc/chunk.js';
export type { OnProgress, ProgressEvent, ProgressPhase } from './progress-event.js';
export type { CooperativeConfig, CooperativeOption, CooperativeYieldEvent, Yielder } from './utils.js';
export type { SearchSymbolsOptions, SymbolMatchField, SymbolSearchResult } from './code/search.js';
export type { CodeContext, CodeContextExport, CodeContextFile, CodeContextLocalImport, CodeContextSource, } from './code/context.js';
export type { WorkspacePrepareOptions, WorkspacePreparedContext, WorkspacePreparationProgressEvent, OnPrepareProgress, } from './workspace/prepare-types.js';
export type { AnalyzeWorkspaceOptions } from './workspace/analyze.js';
export type { DescribeWorkspaceOptions } from './workspace/describe.js';
export type { InspectWorkspaceDocumentSetOptions } from './workspace/documents.js';
export type { WorkspaceBundle, WorkspaceBundleOptions, WorkspaceOutlineNode, WorkspaceCodeDocumentReference, WorkspaceCorpusChunk, } from './workspace/bundle.js';
export type { WorkspaceDescription, WorkspaceRecommendedCall } from './workspace/types.js';
export type { OccHealth } from './health.js';
export { buildChangedRepoMap, buildCodebaseIndex, buildCodebaseIndexWithStats, buildDirectoryTree, buildCodebaseIndexIsolated, buildRepoMap, computeCodeDiff, readCodeSource, rankNodes, rankNodesCached, parseCodeFiles, assembleCodebaseIndex, assembleCodebaseIndexCooperative, DEFAULT_PARSE_CONCURRENCY, chunkCodebase, chunkFromIndex, chunkFromIndexCooperative, chunkFromIndexStreaming, chunkFromStoreIsolated, checkCodeSyntax, createCodeQuerySession, createCodeQuerySessionFromIndex, discoverCodeFiles, openChunkCodeIndexStore, openChunkCodeIndexStore as openChunkStore, openCodeIndexStore, parseSlimIndex, previewCodebaseSize, slimifyIndex, slimifyIndexCooperative, buildCodeContext, searchSymbols, summarizeModule, toMermaid, tryParseSlimIndex, validateSlimIndex, };
export { DEFAULT_EXCLUDE_DIRS } from './utils.js';
export { CodeIndexBudgetExceededError } from './code/build.js';
export { joinHunksToSymbols } from './code/diff.js';
export { OccAbortError, OCC_ABORTED, isOccAbortError } from './errors.js';
export { GitError, detectDefaultBase, gitMergeBase, gitVersion, preflightRepo, resolveDiffRange, runGit, runGitRaw, } from './git/client.js';
export { getGitChangedFiles, getGitChurnSummary, getGitCochange, getGitCommitHistory, getGitDiffFunctionContext, getGitDiffHunks, getGitDiffPatch, getGitDiffSummary, getGitFileHistory, resolveGitRange, } from './git/api.js';
export { health } from './health.js';
export { inspectTables } from './table/inspect.js';
export { chunkDocument, chunkDocumentFromMarkdown } from './doc/chunk.js';
export { PROGRESS_PHASES, isProgressPhase } from './progress-event.js';
export { prepareProgressToProgressEvent } from './workspace/prepare-types.js';
export { bundleWorkspace, bundleWorkspaceIsolated } from './workspace/bundle.js';
export { toNormalizedSymbolKind } from './code/types.js';
export interface OccCodeNamespace {
    buildIndex: typeof buildCodebaseIndex;
    buildIndexIsolated: typeof buildCodebaseIndexIsolated;
    createSession: typeof createCodeQuerySession;
    createSessionFromIndex: typeof createCodeQuerySessionFromIndex;
    openStore: typeof openCodeIndexStore;
    openChunkStore: typeof openChunkCodeIndexStore;
    previewSize: typeof previewCodebaseSize;
    discover: typeof discoverCodeFiles;
    chunk: typeof chunkCodebase;
    chunkFromIndex: typeof chunkFromIndex;
    chunkFromIndexCooperative: typeof chunkFromIndexCooperative;
    chunkFromIndexStreaming: typeof chunkFromIndexStreaming;
    chunkFromStoreIsolated: typeof chunkFromStoreIsolated;
    summarizeModule: typeof summarizeModule;
    searchSymbols: typeof searchSymbols;
    context: typeof buildCodeContext;
    toMermaid: typeof toMermaid;
    source: typeof readCodeSource;
    check: typeof checkCodeSyntax;
    map: typeof buildRepoMap;
    mapChanged: typeof buildChangedRepoMap;
    directoryTree: typeof buildDirectoryTree;
    diff: typeof computeCodeDiff;
    rank: typeof rankNodes;
    rankCached: typeof rankNodesCached;
    slimifyIndex: typeof slimifyIndex;
    slimifyIndexCooperative: typeof slimifyIndexCooperative;
    parseSlimIndex: typeof parseSlimIndex;
    tryParseSlimIndex: typeof tryParseSlimIndex;
    validateSlimIndex: typeof validateSlimIndex;
}
export interface OccGitNamespace {
    resolveRange: typeof resolveGitRange;
    changedFiles: typeof getGitChangedFiles;
    diffSummary: typeof getGitDiffSummary;
    diffPatch: typeof getGitDiffPatch;
    diffHunks: typeof getGitDiffHunks;
    diffFunctionContext: typeof getGitDiffFunctionContext;
    commitHistory: typeof getGitCommitHistory;
    fileHistory: typeof getGitFileHistory;
    churnSummary: typeof getGitChurnSummary;
    cochange: typeof getGitCochange;
}
export interface OccWorkspaceNamespace {
    analyze: typeof analyzeWorkspace;
    describe: typeof describeWorkspace;
    inspectDocuments: typeof inspectWorkspaceDocumentSet;
    prepare: typeof prepareWorkspaceContext;
    bundle: typeof bundleWorkspace;
    bundleIsolated: typeof bundleWorkspaceIsolated;
}
export interface OccDocNamespace {
    inspect: typeof inspectDocument;
    discover: typeof discoverDocuments;
    chunk: typeof chunkDocument;
    chunkFromMarkdown: typeof chunkDocumentFromMarkdown;
}
export interface OccSheetNamespace {
    inspect: typeof inspectWorkbook;
}
export interface OccSlideNamespace {
    inspect: typeof inspectPresentation;
}
export interface OccTableNamespace {
    inspect: typeof inspectTables;
}
export interface OccNamespace {
    code: OccCodeNamespace;
    git: OccGitNamespace;
    workspace: OccWorkspaceNamespace;
    doc: OccDocNamespace;
    sheet: OccSheetNamespace;
    slide: OccSlideNamespace;
    table: OccTableNamespace;
    health: typeof health;
}
export declare function createOcc(): OccNamespace;
