import type { StringValue as TimeUnitValue } from 'ms'; import type { INodeExecutionData, IBinaryData } from '@tosspayments/n8n-workflow'; import type { Readable } from 'stream'; import { BinaryDataConfig } from './binary-data.config'; import type { BinaryData } from './types'; export declare class BinaryDataService { private readonly config; private mode; private managers; constructor(config: BinaryDataConfig); init(): Promise; createSignedToken(binaryData: IBinaryData, expiresIn?: TimeUnitValue): string; validateSignedToken(token: string): string; copyBinaryFile(workflowId: string, executionId: string, binaryData: IBinaryData, filePath: string): Promise; store(workflowId: string, executionId: string, bufferOrStream: Buffer | Readable, binaryData: IBinaryData): Promise; getAsStream(binaryDataId: string, chunkSize?: number): Promise; getAsBuffer(binaryData: IBinaryData): Promise>; getPath(binaryDataId: string): string; getMetadata(binaryDataId: string): Promise; deleteMany(ids: BinaryData.IdsForDeletion): Promise; duplicateBinaryData(workflowId: string, executionId: string, inputData: Array): Promise; rename(oldFileId: string, newFileId: string): Promise; private createBinaryDataId; private duplicateBinaryDataInExecData; private getManager; }