/**
 * Dream/memory consolidation handler — extracted from StdioServer.
 * Handles: memory.dream
 */
import type { TurnConfig } from "../../agent/types.js";
import type { AgentRpcError, AgentRpcRequest } from "../../protocol/wire/index.js";
import { type DreamRunDeps } from "../../runtime/execution/dream-agent.js";
import { type DecayCycleDeps } from "../../runtime/execution/memory-decay.js";
import type { TaskStore } from "../../runtime/infra/task-runtime.js";
import type { ToolCatalog } from "../../runtime/ports/index.js";
type DreamMemoryProvider = NonNullable<DreamRunDeps["memoryProvider"]> & DecayCycleDeps["adapter"];
export interface DreamHandlerHost {
    activeTurn?: AbortController | null;
    currentTransport: DreamRunDeps["transport"] | null;
    currentApiKey: string;
    currentModel: string;
    currentHooks?: DreamRunDeps["hooks"] | null;
    memoryProvider?: DreamMemoryProvider | null;
    memoryUserId?: string;
    toolCatalog: ToolCatalog;
    taskStore: TaskStore;
    verbose?: boolean;
    log(message: string): void;
    resolveMemoryRoot?(): string;
    resolveTranscriptDir?(): string;
    resolveAgent(config: TurnConfig): unknown | null;
    sendNotification(method: string, params: Record<string, unknown>): void;
    sendResponse(id: string | number, result?: unknown, error?: AgentRpcError): void;
}
export declare function handleDream(this: DreamHandlerHost, msg: AgentRpcRequest): Promise<void>;
export {};
