import type { PlatformAdapter } from '../../platform/index.js'; interface PendingTaskEntry { channel: string; machine: string; launchedAt: number; scheduleTaskId: string | null; taskText: string | null; taskHash: string | null; project: string | null; trackingTs: string | null; sessionName: string | null; tmuxName: string | null; pid: string | null; } declare function buildTrackingMetaParts({ startedAtMs, elapsed_s }: { startedAtMs?: number; elapsed_s?: number; }): string; declare function buildTrackingMessage({ taskId, machine, taskText, startedAtMs, elapsed_s, turn_count, status, cost_usd, duration_s, num_turns, finalOutput }: { taskId: string; machine?: string; taskText?: string | null; startedAtMs?: number; elapsed_s?: number; turn_count?: number; status: string; cost_usd?: number | null; duration_s?: number | null; num_turns?: number | null; finalOutput?: string | null; }): string; declare function init(adapter: PlatformAdapter): void; declare function onTaskLaunched({ taskId, machine, channel, scheduleTaskId, taskText, taskHash, project, sessionName, tmuxName, pid }: { taskId: string; machine: string; channel: string; scheduleTaskId?: string | null; taskText?: string | null; taskHash?: string | null; project?: string | null; sessionName?: string | null; tmuxName?: string | null; pid?: string | null; }): Promise; declare function handleTaskProgress({ task_id, machine, cost_usd, turn_count, elapsed_s }: { task_id?: string; machine?: string; cost_usd?: number | null; turn_count?: number; elapsed_s?: number; }): void; declare function clearTask(taskId: string): void; declare function getPendingTasksForSchedule(scheduleTaskId: string): Array; declare function findPendingTaskMatch({ scheduleTaskId, taskHash, project, taskText }: { scheduleTaskId: string; taskHash?: string | null; project?: string; taskText?: string; }): (PendingTaskEntry & { taskId: string; }) | null; declare function getTask(taskId: string): PendingTaskEntry | null; declare function hasPendingTasks(): boolean; declare function pendingTaskCount(): number; export { init, onTaskLaunched, handleTaskProgress, clearTask, getPendingTasksForSchedule, findPendingTaskMatch, getTask, hasPendingTasks, pendingTaskCount, buildTrackingMessage, buildTrackingMetaParts, };