import { Secret } from '../common/common'; import { Algorithm } from '../crypt'; import { Version as CipherVersion } from '../crypt/cipher/cipher'; import { Version as ProtocolVersion } from '../protocol'; declare class Aegis { payloads: string[]; constructor(); static dealShares(protocolVersion: ProtocolVersion, algorithm: Algorithm, threshold: number, total: number, secret: Secret): Aegis; static combineShares(payloads: string[]): Secret; } declare function Encrypt(cVersion: CipherVersion, secret: Secret, password: Uint8Array, salt: Uint8Array): string; declare function Decrypt(secret: string, password: Uint8Array, salt: Uint8Array): Secret; export { Aegis, Encrypt, Decrypt };