import { type ParseResult, parseBooleanEnv } from './cli/options.js'; import { RAGServer } from './server/index.js'; /** * Parse chunk minimum length from environment variable */ export declare function parseChunkMinLength(value: string | undefined): ParseResult; /** Parse the independent PDF image-storage toggle. */ export declare function parseStoreImages(value: string | undefined): ReturnType; /** * Parse the rerank command. Unset, or set to whitespace only, leaves reranking * disabled; the string is otherwise kept verbatim because `src/rerank` splits * it into argv itself. */ export declare function parseRerankCmd(value: string | undefined): ParseResult; /** * Parse the rerank timeout, falling back to the default rather than to "no * timeout". `Number` rather than `Number.parseInt`, so a fractional value is * rejected instead of silently truncated. */ export declare function parseRerankTimeoutMs(value: string | undefined): ParseResult; /** Resolved server config type, named so helpers can share it. */ type ServerConfig = ConstructorParameters[0]; /** * Single source of truth for BASE_DIRS / BASE_DIR / cwd precedence. A resolver * error never falls back to cwd. */ export declare function resolveServerConfig(env: NodeJS.ProcessEnv, cwd: string): Promise; /** Env-only configuration, so a bare `mcp-local-rag` launch suits MCP clients. */ export declare function startServer(): Promise; export {}; //# sourceMappingURL=server-main.d.ts.map