/** * Dream Runner Module for pi-learn * Handles periodic reasoning/dream cycles */ import type { SQLiteStore } from "./store.js"; import type { ContextAssembler } from "./context.js"; import type { ReasoningEngine } from "./reasoning.js"; import type { Conclusion, PeerCard } from "../shared.js"; import type { Config } from "./config.js"; export interface DreamResult { userScopeCount: number; projectScopeCount: number; totalConclusions: number; } export interface DreamContext { globalConclusions: Conclusion[]; localConclusions: Conclusion[]; globalPeerCard?: PeerCard; } export declare function createDreamRunner(store: SQLiteStore, contextAssembler: ContextAssembler, reasoningEngine: ReasoningEngine, config: Config['dream'], defaultWorkspaceId: string, getActiveWorkspaceId?: () => string): (scope?: "user" | "project", notify?: (message: string, type?: "info" | "warning" | "error") => void) => Promise; export interface DreamScheduler { start: () => void; stop: () => void; isRunning: () => boolean; } export declare function createDreamScheduler(runDream: (scope?: "user" | "project", notify?: (message: string, type?: "info" | "warning" | "error") => void) => Promise, config: Config['dream'], notify?: (message: string, type?: "info" | "warning" | "error") => void): DreamScheduler; //# sourceMappingURL=dream.d.ts.map