import type { INodeExecutionData, IRunData, ITaskData } from 'n8n-workflow'; export type InputItemResolver = (item: INodeExecutionData) => INodeExecutionData | undefined; interface SampleFrame { sharedBytes: number; } interface EntryPath { frame: SampleFrame; parent: EntryPath | undefined; depth: number; } interface CountedObject { bytes: number; path: EntryPath | undefined; parent: CountedObject | undefined; sharedIn?: Set; sharedInside?: Map; sharedByRuns?: boolean; sharedByRunsInside?: number; } export declare class RunSharing { readonly countedBy: WeakMap; private readonly sharedBytes; sharedBytesOf(run: number): number; addSharedBytes(run: number, bytes: number): void; } export interface RunSharingContext { runs: RunSharing; run: number; } export declare function estimateTaskDataSize(taskData: ITaskData, runData: IRunData, seen: WeakSet, sharing?: RunSharingContext): number; export declare function estimateInputSize(taskData: ITaskData, seen: WeakSet): number; export declare function estimateItemsSize(items: INodeExecutionData[], seen: WeakSet, inputItemOf?: InputItemResolver, sharing?: RunSharingContext): number; export {};