/** Automation and run transport (08-ui §3, 07-automations §1). */ import type { AutomationId, RunId } from "../../core/index.js"; import { type PollOptions } from "./use-resource.js"; import type { AutomationEntry, EnableResult, RunPlan, RunRecord, RunStatus } from "../../core/index.js"; export declare function useAutomations(options?: PollOptions): { automations: AutomationEntry[]; error: Error | undefined; isLoading: boolean; refresh(): Promise; /** Arm/disarm ONE record: an automation is armed on its own. */ enable(id: AutomationId): Promise; disable(id: AutomationId): Promise; runs(filter?: { automationId?: AutomationId; owner?: string; agent?: string; status?: RunStatus; cursor?: string; }): Promise<{ runs: RunRecord[]; cursor?: string; }>; dryRun(id: AutomationId): Promise; stopRun(runId: RunId): Promise; /** Run it again — a FRESH run of the same automation on the same triggering * event (07 §1 `runs.rerun`). The remedy for a run that failed, and the second * half of Grant & re-run: allow the permission, then this. Answers with the * new run's id, and refreshes the list so its row is live. */ rerun(runId: RunId): Promise; };