import type { Readable } from 'node:stream'; import type { BinaryData } from './types'; export { assertDir, exists } from '@n8n/backend-common'; export declare function isStoredMode(mode: string): mode is BinaryData.StoredMode; export declare function streamToBuffer(stream: Readable): Promise>; export declare function binaryToBuffer(body: Buffer | Readable): Promise>; export declare const FileLocation: { ofExecution: (workflowId: string, executionId: string) => BinaryData.FileLocation; ofCustom: ({ pathSegments, sourceType, sourceId, }: { pathSegments: string[]; sourceType?: string; sourceId?: string; }) => BinaryData.FileLocation; };