/** Small testable transport seam for `botmux workflow cancel`. */ import { type WorkflowDaemonMutationResponse } from '../workflows/v3/daemon-ipc-client.js'; export interface V3RunCancelDaemonResult { ok: true; runId: string; status: 'cancelling' | 'cancelled' | 'succeeded' | 'failed'; cancelRequestId?: string; alreadyRequested?: boolean; alreadyTerminal?: boolean; } export declare class V3RunCancelDaemonError extends Error { readonly status: number; readonly responseBody: string; constructor(status: number, responseBody: string); } export type V3RunCancelCliOptions = { ok: true; reason?: string; larkAppId?: string; } | { ok: false; error: string; }; /** Strict parser for the destructive cancel verb. Unknown/duplicate flags and * flag-shaped values fail before authority lookup or any durable mutation. */ export declare function parseV3RunCancelCliOptions(args: string[]): V3RunCancelCliOptions; /** Validate a daemon cancel response regardless of which transport carried it * (signed-envelope host path or session relay). Throws V3RunCancelDaemonError * on HTTP failure or a malformed success body. */ export declare function parseV3RunCancelDaemonResponse(response: WorkflowDaemonMutationResponse): V3RunCancelDaemonResult; export declare function postV3RunCancel(input: { daemon: { larkAppId: string; ipcPort: number; bootInstanceId?: string; workflowIpcProtocol?: string; }; runId: string; reason?: string; secret?: string; secretPath?: string; fetchImpl?: typeof fetch; timestamp?: string; nonce?: string; }): Promise; export declare function formatV3RunCancelCliSuccess(result: V3RunCancelDaemonResult): string; //# sourceMappingURL=v3-run-cancel.d.ts.map