import { clearGodotPathCache, getCachedGodotPath } from './core/godot-finder.js'; export { clearGodotPathCache, getCachedGodotPath }; export interface ServerOptions { mode?: string; connectionMode?: 'headless' | 'editor'; readOnly?: boolean; noFallback?: boolean; /** P2-1: --overrides CLI flag 指定的默认 override 脚本路径列表,graceful shutdown 时批量卸载 */ overrides?: string[]; } export declare class GodotServer { private server; private opsScript; private options; private readOnlyGuard; private dispatcher; private connectionMode; private editorMgr; private noFallback; private agentCtx; private stateStore; private orphanScanTimer; private httpReceiver; private instanceHeartbeatTimer; private selfInstanceId; private resourceSubscriptions; constructor(opsScript: string, options?: ServerOptions); private setupHandlers; /** Phase 2b: Multi-instance initialization (async fs — C-02). * 2026-08-10 行225:补全接收端 HTTP server——此前 send-side only,现 verifyApiToken 闭环。 */ private initMultiInstance; /** Send tools/list_changed notification to client. Called when active groups change. */ sendToolListChanged(): void; run(): Promise; /** 标记状态为脏,触发防抖刷盘。 */ private markStateDirty; close(): Promise; }