import type { EngineMessage } from "../engine/types.js"; import { type ObservationalMemoryConfig } from "./config.js"; import { type InternalAgentRunFn } from "./internal-run.js"; import type { ObservationalMemoryEntry, ObservationalMemoryOwner } from "./types.js"; export interface RunObserverOptions extends ObservationalMemoryOwner { threadId: string; messages: EngineMessage[]; config?: Partial; runInternal?: InternalAgentRunFn; } export interface RunObserverResult { observed: boolean; entry?: ObservationalMemoryEntry; unobservedTokens: number; } export declare function runObserver(options: RunObserverOptions): Promise;