import type { WorkflowEntity } from '@n8n/db'; import type { Scope } from '@n8n/permissions'; import type { WorkflowSettings } from 'n8n-workflow'; export declare function getRequiredRedactionScopes(oldPolicy: WorkflowSettings.RedactionPolicy | undefined, newPolicy: WorkflowSettings.RedactionPolicy): Scope[]; export declare function getErrorNodeId(error: unknown): string | undefined; export declare function getErrorDescription(error: unknown): string | undefined; export declare function dropRedactionPolicy(newWorkflow: WorkflowEntity): void;