import type { Agent } from "@caupulican/pi-agent-core"; import type { SessionManager, SessionMessageBatchEntry } from "@caupulican/pi-agent-core/session"; import type { Message } from "@caupulican/pi-ai"; import type { ModelRouterController } from "./model-router-controller.ts"; /** * Host-side adapter for the foreground lifecycle boundary. * * The lifecycle controller owns request/tool repair semantics. This adapter owns the coding-agent * persistence wiring around it: atomic router batches, canonical message ids, and warnings emitted * before the first session subscriber exists. */ export declare class ForegroundLifecycleAdapter { private readonly lifecycle; private readonly sessionManager; private pendingWarnings; constructor(agent: Agent, sessionManager: SessionManager, modelRouter: ModelRouterController); install(): void; start(): void; reload(): void; repair(): void; resetForSessionReload(): void; appendMessage(message: Message): string; appendMessageBatch(batch: readonly SessionMessageBatchEntry[]): string[]; drainWarnings(): string[]; emitPendingWarnings(emit: (message: string) => void): void; } //# sourceMappingURL=foreground-lifecycle-adapter.d.ts.map