import { IEncryptionAlgorithm, EncryptionResult, EncryptionConfigType } from '../encryption/IEncryptionAlgorithm'; import { TextEncoding } from '../utils/encodingUtils'; export declare class EncryptionService, TConfig extends EncryptionConfigType> { private algorithm; private algorithmConfig; constructor(algorithm: TAlgorithm, algorithmConfig: TConfig); encryptText(plaintext: string, encoding?: TextEncoding): Promise; decryptText(encryptedData: ArrayBuffer, encoding?: TextEncoding): Promise; encryptFile(fileBuffer: ArrayBuffer, encoding?: TextEncoding): Promise; decryptFile(encryptedBuffer: ArrayBuffer, encoding?: TextEncoding): Promise; encryptFileByName(fileName: string): Promise; decryptFileByName(encryptedResult: EncryptionResult, fileName: string): Promise; arrayBufferToString(buffer: ArrayBuffer): string; stringToArrayBuffer(str: string): ArrayBuffer; }