/** * Task relationship management core module. * @task T4538 * @epic T4454 */ import type { TasksRelatesAddBatchEntry, TasksRelatesAddBatchResult } from '@cleocode/contracts'; import type { DataAccessor } from '../store/data-accessor.js'; /** Suggest related tasks based on shared attributes. */ export declare function suggestRelated(taskId: string, opts: { threshold?: number; cwd?: string; }, accessor?: DataAccessor): Promise>; /** Add a relation between tasks. */ export declare function addRelation(from: string, to: string, type: string, reason: string, cwd?: string, accessor?: DataAccessor): Promise>; /** Add multiple relation edges after prevalidating the full batch. */ export declare function addBatchRelations(entries: TasksRelatesAddBatchEntry[], opts?: { dryRun?: boolean; reasonWaiver?: string; cwd?: string; }, accessor?: DataAccessor): Promise; /** Remove a relation between tasks. */ export declare function removeRelation(from: string, to: string, type?: string, cwd?: string, accessor?: DataAccessor): Promise>; /** Discover related tasks using various methods. */ export declare function discoverRelated(taskId: string, cwd?: string, accessor?: DataAccessor): Promise>; /** List existing relations for a task. */ export declare function listRelations(taskId: string, cwd?: string, accessor?: DataAccessor): Promise>; //# sourceMappingURL=relates.d.ts.map