import type { ExecutionRedactionQueryDto } from '@n8n/api-types'; import type { IExecutionBase, User } from '@n8n/db'; import type { IRunExecutionData, IWorkflowBase, WorkflowExecuteMode } from 'n8n-workflow'; export type ExecutionRedactionOptions = { user: User; ipAddress?: string; userAgent?: string; keepOriginal?: boolean; } & Pick; export interface ExecutionRedaction { processExecution(execution: RedactableExecution, options: ExecutionRedactionOptions): Promise; processExecutions(executions: RedactableExecution[], options: ExecutionRedactionOptions): Promise; } export type RedactableExecution = { id?: string; mode: WorkflowExecuteMode; workflowId: string; data: Pick; workflowData: Pick; }; export declare function isRedactableExecution(execution: IExecutionBase): execution is IExecutionBase & RedactableExecution;