import type { AgentSession } from '@earendil-works/pi-coding-agent'; import type { AgentEvent } from '@earendil-works/pi-agent-core'; import type { EmbeddedStreamEvent } from './types.js'; export declare function subscribeEmbeddedSessionEvents(session: AgentSession, onEvent: (event: EmbeddedStreamEvent) => void, onAgentEvent?: (event: AgentEvent) => void): () => void; export declare function lastAssistantPlainText(session: AgentSession): string | undefined;