export interface OnlineDaemonInfo { larkAppId: string; ipcPort: number; /** Random per-process audience for authenticated Workflow v3 mutations. */ bootInstanceId?: string; /** Auth protocol advertised atomically with bootInstanceId + ipcPort. */ workflowIpcProtocol?: string; botName?: string; cliId?: string; pid?: number; lastHeartbeat?: number; } /** Parse a loopback daemon IPC port from a descriptor or injected env value. */ export declare function parseDaemonIpcPort(value: unknown): number | undefined; /** * Prefer host-visible daemon discovery, then fall back to the port explicitly * injected into an isolated CLI. The fallback is only a loopback address * marker; individual daemon routes still authenticate their own requests. */ export declare function resolveDaemonIpcPort(discovered: unknown, injected: unknown): number | undefined; /** List every daemon whose descriptor file is fresh (heartbeat within STALE_MS). */ export declare function listOnlineDaemons(): OnlineDaemonInfo[]; /** Find a specific online daemon by larkAppId. Returns null if offline / not found. */ export declare function findOnlineDaemon(larkAppId: string): OnlineDaemonInfo | null; //# sourceMappingURL=daemon-discovery.d.ts.map