interface McpConfig {
  apiKey: string | undefined;
  endpoint: string;
}

declare function initConfig(args: {
  apiKey?: string;
  endpoint?: string;
}): void;

declare function getConfig(): McpConfig;

declare function requireApiKey(): string;

declare function runWithConfig<T>(config: McpConfig, fn: () => T): T;

export { type McpConfig, getConfig, initConfig, requireApiKey, runWithConfig };
