import { type McpContext } from "./context.js"; interface MisarConfig { api_key?: string; base_url?: string; } /** * Merge-write the config. * * Merging (rather than replacing) matters: `login` writes only api_key, and a * plain overwrite silently discarded a previously configured base_url, pointing * self-hosted installs back at the public API. Pass `undefined` for a field to * drop it — that is how `logout` clears the key. */ export declare function saveConfig(config: MisarConfig): void; export declare function getBaseUrl(): string; export declare function tryGetApiKey(): string | null; /** * Resolve the stdio context lazily, at call time — never at import time. * * Smithery (and every other directory that scans a server) starts the process * with no credentials and immediately calls `tools/list`. An import-time * `process.exit(1)` on a missing key is exactly why the tool list went stale: * the scanner sees a dead process instead of the catalogue. Discovery must * always succeed; only `tools/call` may demand a key. */ export declare function stdioContext(): McpContext; export {}; //# sourceMappingURL=auth.d.ts.map