import type { PlatformAdapter } from '../platform/index.js'; /** Messages the daemon supervisor pushes DOWN to the running app over the fork IPC channel. * The reverse direction (busy/idle) is owned by orchestration/busy-tracker. */ export interface DaemonMessage { type?: string; text?: string; } /** Broadcast a supervisor-side notice to the admin channel and the Web toaster. * * Returns whether a notice was emitted, so an unrelated IPC message is distinguishable from a * handled one. A rebuild abort is error-level on purpose: the pipeline stopped before * install+restart, so the process stays on the previously installed build and every later code * change is invisible until someone notices. Logging alone made that failure silent. */ export declare function handleDaemonMessage(msg: DaemonMessage | undefined | null, adapter: PlatformAdapter): Promise; /** Wire the fork IPC channel to the notice broadcast. No-op when the process was not forked by * the daemon (standalone `cortex serve`, tests), where `process.send` is undefined. */ export declare function subscribeDaemonNotices(adapter: PlatformAdapter): void;