/** * server-env.ts — Build env and spawn the local dev server * * Isolated so daemon-entry.ts stays focused on orchestration. */ import { ChildProcess } from 'child_process'; export interface ServerEnvOptions { localServerDir: string; gatewayUrl: string; relayTokenFile: string; graphTokenFile: string; configFile: string; teamId: string; } /** * Build the env object for the local-server process. */ export declare function buildEnv(opts: ServerEnvOptions): Record; /** * Spawn the local-server node process. */ export declare function spawnServer(localServerDir: string, env: Record): ChildProcess;