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 { 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 function createOcc() {
    return {
        code: {
            buildIndex: buildCodebaseIndex,
            buildIndexIsolated: buildCodebaseIndexIsolated,
            createSession: createCodeQuerySession,
            createSessionFromIndex: createCodeQuerySessionFromIndex,
            openStore: openCodeIndexStore,
            openChunkStore: openChunkCodeIndexStore,
            previewSize: previewCodebaseSize,
            discover: discoverCodeFiles,
            chunk: chunkCodebase,
            chunkFromIndex: chunkFromIndex,
            chunkFromIndexCooperative,
            chunkFromIndexStreaming,
            chunkFromStoreIsolated,
            summarizeModule,
            searchSymbols,
            context: buildCodeContext,
            toMermaid,
            source: readCodeSource,
            check: checkCodeSyntax,
            map: buildRepoMap,
            mapChanged: buildChangedRepoMap,
            directoryTree: buildDirectoryTree,
            diff: computeCodeDiff,
            rank: rankNodes,
            rankCached: rankNodesCached,
            slimifyIndex,
            slimifyIndexCooperative,
            parseSlimIndex,
            tryParseSlimIndex,
            validateSlimIndex,
        },
        git: {
            resolveRange: resolveGitRange,
            changedFiles: getGitChangedFiles,
            diffSummary: getGitDiffSummary,
            diffPatch: getGitDiffPatch,
            diffHunks: getGitDiffHunks,
            diffFunctionContext: getGitDiffFunctionContext,
            commitHistory: getGitCommitHistory,
            fileHistory: getGitFileHistory,
            churnSummary: getGitChurnSummary,
            cochange: getGitCochange,
        },
        workspace: {
            analyze: analyzeWorkspace,
            describe: describeWorkspace,
            inspectDocuments: inspectWorkspaceDocumentSet,
            prepare: prepareWorkspaceContext,
            bundle: bundleWorkspace,
            bundleIsolated: bundleWorkspaceIsolated,
        },
        doc: {
            inspect: inspectDocument,
            discover: discoverDocuments,
            chunk: chunkDocument,
            chunkFromMarkdown: chunkDocumentFromMarkdown,
        },
        sheet: {
            inspect: inspectWorkbook,
        },
        slide: {
            inspect: inspectPresentation,
        },
        table: {
            inspect: inspectTables,
        },
        health,
    };
}
//# sourceMappingURL=index.js.map