import { Logger } from '@n8n/backend-common'; import type { NodeExecuteAfterContext, NodeExecuteBeforeContext, WorkflowExecuteAfterContext, WorkflowExecuteBeforeContext, WorkflowExecuteResumeContext } from '@n8n/decorators'; import { ActiveExecutions } from '../active-executions'; export interface RunDataEstimate { totalBytes: number; bytesByNode: ReadonlyMap; runningNode: string | undefined; } export declare class RunDataTracker { private readonly logger; private readonly activeExecutions; private readonly executions; constructor(logger: Logger, activeExecutions: ActiveExecutions); onExecutionStart({ executionId, executionData }: WorkflowExecuteBeforeContext): void; onExecutionResume({ executionId, executionData }: WorkflowExecuteResumeContext): void; onNodeStart({ executionId, nodeName, taskData }: NodeExecuteBeforeContext): void; onNodeFinish({ executionId, nodeName, taskData, executionData }: NodeExecuteAfterContext): void; onExecutionEnd({ executionId }: WorkflowExecuteAfterContext): void; getEstimate(executionId: string): RunDataEstimate | undefined; private safely; private finishRun; private track; private addEstimate; private addBytes; private dropFinished; private logEstimate; }