import { RAGServer } from './server/index.js'; import type { GroupingMode } from './vectordb/index.js'; /** Result of parsing an environment variable */ export interface ParseResult { value: T | undefined; warning?: string; } /** * Parse grouping mode from environment variable */ export declare function parseGroupingMode(value: string | undefined): ParseResult; /** * Parse max distance from environment variable */ export declare function parseMaxDistance(value: string | undefined): ParseResult; /** * Parse max files from environment variable */ export declare function parseMaxFiles(value: string | undefined): ParseResult; /** * Parse hybrid weight from environment variable */ export declare function parseHybridWeight(value: string | undefined): ParseResult; /** * Parse chunk minimum length from environment variable */ export declare function parseChunkMinLength(value: string | undefined): ParseResult; /** * Resolve the full RAGServer configuration from environment variables. * * Pure (no process.exit, no transport): `env` and `cwd` are passed in so the * entry-point wiring can be exercised directly in tests instead of via a copy. * Single source of truth for BASE_DIRS / BASE_DIR / cwd precedence, the * sensitive-path policy on both raw and realpath-normalized roots, and the * never-fall-back-to-cwd-on-error rule. */ export declare function resolveServerConfig(env: NodeJS.ProcessEnv, cwd: string): Promise[0]>; /** * Start the RAG MCP Server * Configuration is read from environment variables only (no CLI flags). * This ensures the bare `mcp-local-rag` launch is suitable for MCP clients. */ export declare function startServer(): Promise; //# sourceMappingURL=server-main.d.ts.map