/** Shared client for authenticated Workflow v3 daemon mutations. */ import type { OnlineDaemonInfo } from '../../utils/daemon-discovery.js'; import { type WorkflowDaemonIpcTarget } from './daemon-ipc-auth.js'; export type WorkflowDaemonMutation = 'start' | 'cancel' | 'retry' | 'grant'; export interface WorkflowDaemonMutationResponse { ok: boolean; status: number; bodyRaw: string; } export declare class WorkflowDaemonMutationTransportError extends Error { readonly causeValue?: unknown | undefined; constructor(message: string, causeValue?: unknown | undefined); } export declare function workflowDaemonMutationTarget(daemon: Pick): WorkflowDaemonIpcTarget; export declare function workflowDaemonMutationPath(runId: string, mutation: WorkflowDaemonMutation): string; /** * Serialize once, sign those exact bytes, and pass the same string to fetch. * Mutations are never transport-retried: a lost response must be reconciled by * the operation's durable/idempotent domain semantics, not by blind HTTP retry. */ export declare function postWorkflowDaemonMutation(input: { daemon: Pick; runId: string; mutation: WorkflowDaemonMutation; body?: Record; secret?: string; secretPath?: string; fetchImpl?: typeof fetch; timestamp?: string; nonce?: string; }): Promise; //# sourceMappingURL=daemon-ipc-client.d.ts.map