/** * workflow-delete — soft-delete a Workflow and cascade to all related nodes: * WorkflowStep, WorkflowRun, StepResult. * * Marks every node `:Trashed` via the shared `trashNode` primitive so the * 2026-04-20 DETACH DELETE blast radius cannot recur; the hierarchy stays * intact for 30 days, then `memory-empty-trash` hard-deletes it. * * Cascade ordering: elementIds are gathered in a single upfront query BEFORE * any `trashNode` call, because `trashNode` nulls unique-key properties * (workflowId, stepId, runId) to free UNIQUE constraints. Traversing by * business key after trashing the root would silently miss children. * * For GDPR erasure, `contact-erase` hard-deletes separately — this tool is * not the bypass path; use that tool for Article 17. */ export interface WorkflowDeleteResult { workflowId: string; trashedAt: string; alreadyTrashed: boolean; cascade: { steps: number; runs: number; stepResults: number; }; } export declare function workflowDelete(workflowId: string, accountId: string): Promise; //# sourceMappingURL=workflow-delete.d.ts.map