import type { AgentContext, LapActionsResponse } from '../../protocol.js'; import { type ListActionsHost } from './list-actions.js'; export type ObserveHost = ListActionsHost & { getAgentContext(): ((state: unknown) => AgentContext) | null; }; /** * Dynamic slice of the unified `observe` response. The server-side LAP * endpoint composes this with the static description (name/version/ * messages/docs from the cached hello frame) to produce the full * `LapObserveResponse`. Keeping the split here means a single WS * round-trip captures everything that changes with state, while the * static metadata stays server-side where it's already cached. */ export type ObserveResult = { state: unknown; actions: LapActionsResponse['actions']; context: AgentContext | null; }; export declare function handleObserve(host: ObserveHost): ObserveResult; //# sourceMappingURL=observe.d.ts.map