import { Ecies } from "@toruslabs/eccrypto";
export type EciesHex = {
    iv: string;
    ephemPublicKey: string;
    ciphertext: string;
    mac: string;
};
export declare function getWindow(): Window;
export declare function encParamsHexToBuf(encParamsHex: EciesHex): Ecies;
export declare function encParamsBufToHex(encParams: Ecies): EciesHex;
export declare function encryptData(privKeyHex: string, d: unknown): Promise<string>;
export declare function decryptData<T>(privKeyHex: string, d: string): Promise<T>;
