/** * This file is part of the NocoBase (R) project. * Copyright (c) 2020-2024 NocoBase Co., Ltd. * Authors: NocoBase Team. * * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. * For more information, please refer to: https://www.nocobase.com/agreement. */ /// import Application from './application'; export declare class AesEncryptor { private key; constructor(key: Buffer); encrypt(text: string): Promise; decrypt(encryptedText: string): Promise; decryptSync(encryptedText: string): string; static getOrGenerateKey(keyFilePath: string): Promise; static getKeyPath(appName: string): Promise; static create(app: Application): Promise; } export default AesEncryptor;