import type { TaskRecord } from "../utils/command-registry.js"; export type TaskStatusCoreInput = { taskId?: string; logPath?: string; projectDir?: string; }; export declare function checkTaskStatusCore(input: TaskStatusCoreInput): Promise<{ status: string; targetStatus: string; taskId: string | undefined; logPaths: string[]; output: string; diagnostic: import("./diagnostics/types.js").DiagnosticResult; }>; export declare function checkTaskStatusSummaryCore(input: TaskStatusCoreInput): Promise<{ taskId: string | undefined; status: string; type: string; logPath: string; logPaths: string[]; output: string; raw: { status: string; targetStatus: string; taskId: string | undefined; logPaths: string[]; output: string; diagnostic: import("./diagnostics/types.js").DiagnosticResult; }; }>; /** Compact task history item returned to MCP clients. */ export interface TaskHistoryItem { commandId: string; taskId: string; type: TaskRecord["type"]; status: TaskRecord["status"]; startedAt: string; port?: string; exitCode?: number; logPaths: string[]; error?: string; } /** * Returns recent project-scoped task records after reconciling stale PIDs. * * @param input - Project scope, result limit, and optional status filter. * @returns Newest-first compact task history. */ export declare function listTaskHistoryCore(input: { projectDir: string; limit?: number; status?: TaskRecord["status"]; }): Promise<{ tasks: TaskHistoryItem[]; observedAt: string; }>; /** * Idempotently cancels one owned background task and releases its resources. * * @param input - Task identifier and optional project scope. * @returns Cancellation outcome. */ export declare function cancelTaskCore(input: { taskId: string; projectDir?: string; }): Promise<{ success: boolean; taskId: string; status: "cancelled" | "already_terminal" | "not_found"; processTerminated: boolean; }>; //# sourceMappingURL=tasks.d.ts.map