import type { RemoteCommand } from "../integrations/remote-types.js"; import { type Resource } from "../resources/store.js"; import { type JobFrontmatter } from "./frontmatter.js"; export declare const REMOTE_AUTOMATION_MAX_ACTIVE_MS: number; export type RemoteAutomationState = "not-remote" | "active" | "completed" | "failed"; export interface RemoteAutomationStatus { state: RemoteAutomationState; command?: RemoteCommand; error?: string; } export interface RemoteAutomationDispatchInput { resource: Resource; meta: JobFrontmatter; body: string; ownerEmail: string; orgId?: string; appId?: string; prompt: string; title: string; historyId?: string; advanceSchedule?: boolean; now?: Date; } export declare function dispatchRemoteAutomation(input: RemoteAutomationDispatchInput): Promise<{ command: RemoteCommand; requestId: string; automationRunId?: string; }>; export declare function getRemoteAutomationStatus(input: { meta: JobFrontmatter; ownerEmail: string; orgId?: string; now?: Date; }): Promise; export declare function finishRemoteAutomationHistory(meta: Pick, state: "completed" | "failed", error?: string): Promise;