export declare class IncorrectPassword extends Error {
    constructor();
}
export declare class Encrypted {
    readonly iterations: number;
    readonly dkLen: number;
    readonly nonce: Uint8Array;
    readonly salt: Uint8Array;
    readonly data: Uint8Array;
    readonly cipher: string;
    constructor(params: {
        iterations: number;
        dkLen: number;
        nonce: Uint8Array;
        salt: Uint8Array;
        data: Uint8Array;
        cipher: string;
    });
    static encrypt(dataToEncrypt: Uint8Array, password: string): Promise<Encrypted>;
    static decrypt(encrypted: Encrypted, password: string): Promise<Uint8Array<ArrayBufferLike>>;
}
