import { Embedder } from '../embedder/index.js'; import { type BaseDirsConfig, type BaseDirsConfigWarning } from '../utils/base-dirs.js'; import { type ScanExclusion } from '../utils/scan.js'; import { VectorStore } from '../vectordb/index.js'; import { type ResolvedGlobalConfig } from './options.js'; /** * Render a caught value for a CLI failure: every `.cause` link with its stack, * deeper links prefixed `Caused by: `. * * The CLI is operator-facing, so unlike the MCP boundary the full chain IS * printed. Callers keep their own prefix and exit-code policy. */ export declare function formatCliError(error: unknown): string; /** * Create an uninitialized VectorStore from resolved global config. * Callers are responsible for calling initialize() before use. */ export declare function createVectorStore(config: ResolvedGlobalConfig): VectorStore; /** * Create an uninitialized Embedder from resolved global config. * Callers are responsible for managing the Embedder lifecycle. */ export declare function createEmbedder(config: ResolvedGlobalConfig): Embedder; /** * Result of {@link resolveCliBaseDirsOrExit}. Resolution warnings travel with * the config so subcommands can render them per their own UI contract (CLI * subcommands generally write them to stderr). */ export interface CliBaseDirsResolution { config: BaseDirsConfig; warnings: BaseDirsConfigWarning[]; } /** The scan exclusion for `ingest`, `list`, and `sync`; exits on an invalid `IGNORE_PATHS`. */ export declare function buildCliScanExclusionOrExit(input: { dbPath: string; cacheDir: string; roots: BaseDirsConfig; }): ScanExclusion; export declare function resolveCliBaseDirsOrExit(cliRoots: string[]): Promise; //# sourceMappingURL=common.d.ts.map