import type { IRecursionService, IRecursionResult, IRecursionConfig, IMemoryService, ITaskService } from '../../domain'; /** * Service for searching memory when planning. * * When a user submits a prompt in plan mode, this service searches * memory for relevant context: previous decisions, learnings, and tasks. */ export declare class RecursionService implements IRecursionService { private readonly memory; private readonly tasks; private readonly config; constructor(memory: IMemoryService, tasks: ITaskService, config?: Partial); /** * Check if recursion should run for a given prompt. */ shouldRun(prompt: string, permissionMode: string): boolean; /** * Run memory recursion for a plan mode prompt. */ run(prompt: string): Promise; /** * Extract meaningful topics from a prompt. */ private extractTopics; /** * Search memory for facts of a specific type. */ private searchByType; /** * Search for related tasks. */ private searchTasks; /** * Format a memory fact for display. */ private formatFact; /** * Format a task for display. */ private formatTask; /** * Get a tag value by prefix. */ private getTag; /** * Build formatted summary output. */ private buildSummary; } //# sourceMappingURL=RecursionService.d.ts.map