/** * Shared source-vs-compiled runtime detection for daemon spawning. * * Centralizes the logic previously embedded in `ensureTelegramDaemonRunning` * so session autostart, reload, and status reporting agree on how a daemon * process is launched and whether a reload can pick up amended source. */ export interface GjcRuntimeSpawnInfo { execPath: string; mode: "source" | "compiled"; /** Prefix prepended before the gjc subcommand args; `[Bun.main]` in source mode, otherwise `[]`. */ argsPrefix: string[]; /** True only when respawn loads edited TypeScript directly (source/dev mode). */ reloadPicksUpSourceEdits: boolean; /** Set in compiled mode to explain that a rebuild is required before reload picks up source edits. */ warning?: string; } /** * Resolve how to spawn a detached gjc subcommand for the current runtime. * * Source/dev mode (bun/node) prepends the entry script (`Bun.main`) so the * respawn loads edited source. A compiled single-file binary self-spawns its * own subcommand directly and cannot pick up workspace source edits. */ export declare function resolveGjcRuntimeSpawnInfo(execPath?: string): GjcRuntimeSpawnInfo;