/** * pop task cancel — cancel a not-yet-completed task (destructive). * * Status gate verified against contracts origin/main src/TaskManager.sol * (BadStatus semantics): cancel applies to tasks that have not reached a * terminal state — UNCLAIMED, CLAIMED, and SUBMITTED. COMPLETED and * CANCELLED tasks fail fast in pre-flight. * * Cancelling discards the task (and any in-flight work on it), so the * confirmation is destructive: interactive sessions are prompted, and * non-TTY sessions must pass --yes explicitly (--json implies consent for * script compatibility). */ import type { Argv, ArgumentsCamelCase } from 'yargs'; interface CancelArgs { org: string; task: string; chain?: number; rpc?: string; 'private-key'?: string; 'dry-run'?: boolean; yes?: boolean; preflight?: boolean; 'idempotency-key'?: string; 'no-idempotency'?: boolean; } export declare const cancelHandler: { builder: (yargs: Argv) => Argv<{ task: string; } & { "idempotency-key": string | undefined; } & { "no-idempotency": boolean; }>; handler: (argv: ArgumentsCamelCase) => Promise; }; export {};