import type { ToolCall } from "../../types.js"; import type { PlanTask, SessionPlan } from "../../store/plan.js"; import { type TaskWorkLedger } from "../task-evidence.js"; export interface TaskAutostartPorts { readonly openTask: (taskId: string) => Promise; readonly renderPlan: (plan: SessionPlan) => void; readonly notify: (message: string) => void; readonly getLedger: () => TaskWorkLedger | null; readonly setLedger: (ledger: TaskWorkLedger | null) => void; } export declare const selectAutostartTask: (plan: SessionPlan, call: ToolCall) => PlanTask | undefined; export declare const autostartPlanTask: (plan: SessionPlan, call: ToolCall, ports: TaskAutostartPorts) => Promise;