/** * pop project delete — delete a project (DESTRUCTIVE). * * Gate — VERIFIED against contracts origin/main src/TaskManager.sol: * deleteProject(bytes32 pid) calls _requireCreator() (creator hat or * executor) and reverts NotFound when the project does not exist. * * Pre-flight (skippable with --no-preflight) reads the project via the * TaskManager lens (PROJECT_INFO → (cap, spent, exists)) so a bad or * already-deleted project ID fails fast (exit 4) before gas is spent. * * Destructive confirmation: interactive sessions are prompted; non-TTY * sessions must pass --yes explicitly. */ import type { Argv, ArgumentsCamelCase } from 'yargs'; import { PreflightCheck } from '../../lib/preflight'; interface DeleteArgs { org: string; project: string; chain?: number; rpc?: string; 'private-key'?: string; 'dry-run'?: boolean; yes?: boolean; preflight?: boolean; } /** * Project exists on-chain (lens PROJECT_INFO → (cap, spent, exists)). * Same shape as the task-domain check in task/perms.ts. */ export declare function checkProjectExists(taskManagerAddr: string, pid: string): PreflightCheck; export declare const deleteHandler: { builder: (yargs: Argv) => Argv<{ project: string; }>; handler: (argv: ArgumentsCamelCase) => Promise; }; export {};