import type { Task, TaskRun } from '@xopcai/gateway-contract'; import { TaskRepository } from './task-repository.js'; import { TaskRunRepository } from './task-run-repository.js'; export type TaskDeletionInspection = { ok: true; task: Task; } | { ok: false; reason: 'not_found'; } | { ok: false; reason: 'active_run'; run: TaskRun; }; export declare class TaskDeletionService { private readonly tasks; private readonly runs; constructor(tasks?: TaskRepository, runs?: TaskRunRepository); inspect(taskId: string): TaskDeletionInspection; delete(taskId: string): TaskDeletionInspection; }