/** * Task Sync Sub-Domain — EngineResult-returning wrappers for external task sync. * * Provides taskSyncReconcile, taskSyncLinks, and taskSyncLinksRemove as * EngineResult-returning functions, moving this logic from task-engine.ts into * core/tasks/ per the T1566 engine-migration epic (ADR-057, ADR-058). * * @task T1568 * @epic T1566 * @adr ADR-057 * @adr ADR-058 */ import type { ExternalTask, ExternalTaskLink, ReconcileResult } from '@cleocode/contracts'; import { type EngineResult } from '../engine-result.js'; /** * Reconcile external tasks with CLEO as SSoT. * * @param projectRoot - Absolute path to the project root * @param params - Reconciliation parameters including provider ID and external tasks * @returns EngineResult with reconciliation results * * @task T1568 * @epic T1566 */ export declare function taskSyncReconcile(projectRoot: string, params: { providerId: string; externalTasks: ExternalTask[]; dryRun?: boolean; conflictPolicy?: string; defaultPhase?: string; defaultLabels?: string[]; }): Promise>; /** * List external task links by provider or task ID. * * @param projectRoot - Absolute path to the project root * @param params - Optional provider ID or task ID filter * @returns EngineResult with links array and count * * @task T1568 * @epic T1566 */ export declare function taskSyncLinks(projectRoot: string, params?: { providerId?: string; taskId?: string; }): Promise>; /** * Remove all external task links for a provider. * * @param projectRoot - Absolute path to the project root * @param providerId - Provider ID whose links to remove * @returns EngineResult with count of removed links * * @task T1568 * @epic T1566 */ export declare function taskSyncLinksRemove(projectRoot: string, providerId: string): Promise>; //# sourceMappingURL=sync-ops.d.ts.map