import { type SpawnSessionEvent } from '../../services/spawn-session.js'; /** * Bridges the shared spawn event bus (`onSessionEvent` — already reused by the * GH-535 durable background-command lane) to the chat process manager, so a * background subagent's completion/failure automatically injects a follow-up * turn into the web-console chat session that delegated it, instead of only * flipping the UI notification badge the frontend already renders. * * Idempotent per process: only the first call subscribes. Guards against * `createBridgeApp` being invoked more than once in the same process (e.g. a * test harness building multiple bridge apps) from wiring the same wake twice. */ export declare function registerChatAutoResume(): () => void; /** * Composes the synthetic user-role message injected as the resumed turn. * `maxOutputBytes` reuses context-builder.ts's model-scaled injection budget * (getContextBudgetForModel) instead of inlining the subagent's raw output * (already capped at 32KB by spawn-adapters.ts's MAX_OUTPUT_CHARS) unconditionally — * a 32KB block would still meaningfully eat into the resumed turn's own budget. */ export declare function composeWakeMessage(event: SpawnSessionEvent, maxOutputBytes: number): string;