import { IExecuteFunctions } from 'n8n-workflow'; import { IFileDownloadResponse, IFileUploadResponse } from './Interfaces/FileStorageInterfaces'; import { IProtectWithExternalRefIdRequest, IProtectWithExternalRefIdResponse, IProtectWithFileIdRequest, IProtectWithFileIdResponse, IProtectWithHotFolderRequest, IProtectWithHotFolderResponse } from './Interfaces/ProtectInterfaces'; import { IUnprotectRequest, IUnprotectResponse } from './Interfaces/UnprotectInterfaces'; export declare class SecloreDRMFileService { private defaultRetryCount; private apiService; private tenantId; private tenantSecret; private accessToken?; private refreshToken?; private tokenExpiry?; private refreshPromise?; private loginPromise?; constructor(context: IExecuteFunctions, baseUrl: string, tenantId: string, tenantSecret: string, defaultRetryCount?: number); private ensureAuthenticated; private login; private refreshAccessToken; private performTokenRefresh; private clearTokens; private executeWithRetry; protectWithExternalRefId(protectRequest: IProtectWithExternalRefIdRequest, correlationId?: string, retryCount?: number): Promise; protectWithFileId(protectRequest: IProtectWithFileIdRequest, correlationId?: string, retryCount?: number): Promise; protectWithHotFolder(protectRequest: IProtectWithHotFolderRequest, correlationId?: string, retryCount?: number): Promise; unprotect(unprotectRequest: IUnprotectRequest, correlationId?: string, retryCount?: number): Promise; uploadFile(fileBuffer: Uint8Array, fileName: string, correlationId?: string, retryCount?: number): Promise; downloadFile(fileStorageId: string, correlationId?: string, retryCount?: number): Promise; deleteFile(fileStorageId: string, correlationId?: string, retryCount?: number): Promise; getAccessToken(): string | undefined; isAuthenticated(): boolean; }