import type { WorkflowInstance } from "@stigmer/protos/ai/stigmer/agentic/workflowinstance/v1/api_pb";
/** Return value of {@link useDeleteWorkflowInstance}. */
export interface UseDeleteWorkflowInstanceReturn {
    /**
     * Delete a workflow instance by ID. Returns the deleted resource.
     *
     * WARNING: Deleting an instance cascades — all executions belonging
     * to this instance are permanently removed.
     */
    readonly deleteInstance: (id: string) => Promise<WorkflowInstance>;
    /** `true` while the delete request is in flight. */
    readonly isDeleting: boolean;
    /** Error from the last failed delete, or `null` when healthy. */
    readonly error: Error | null;
    /** Reset `error` to `null`. */
    readonly clearError: () => void;
}
/**
 * Mutation hook that deletes a WorkflowInstance resource.
 *
 * Wraps `stigmer.workflowInstance.delete()` with loading/error state.
 * The caller is responsible for handling post-delete UI updates
 * (e.g., refreshing the instance list, closing a detail panel).
 *
 * Deletion cascades to all WorkflowExecution resources that belong
 * to the instance. The confirmation UI should warn the user about this.
 *
 * @example
 * ```tsx
 * const { deleteInstance, isDeleting } = useDeleteWorkflowInstance();
 *
 * const handleDelete = async () => {
 *   await deleteInstance(instance.metadata.id);
 *   refetch(); // refresh list after deletion
 * };
 * ```
 */
export declare function useDeleteWorkflowInstance(): UseDeleteWorkflowInstanceReturn;
//# sourceMappingURL=useDeleteWorkflowInstance.d.ts.map