import sjcl, { BitArray } from '@aikon/sjcl'; import { EncryptedDataString } from './genericCryptoModels'; /** Convert a base64 string to a sjcl.BitArray */ export declare function base64StringToBitArray(value: string | BitArray): sjcl.BitArray; /** Convert sjcl.BitArray to a base64 string */ export declare function bitArrayToBase64String(value: sjcl.BitArray | string): string; /** Convert a hex string to a sjcl.BitArray */ export declare function hexStringToBitArray(value: string | BitArray): sjcl.BitArray; /** Convert sjcl.BitArray to a hex string */ export declare function bitArrayToHexString(value: sjcl.BitArray | string): string; /** Convert a utf8 string to a sjcl.BitArray */ export declare function utf8StringToBitArray(value: string | BitArray): sjcl.BitArray; /** Convert sjcl.BitArray to a utf8 string */ export declare function bitArrayToUtf8String(value: sjcl.BitArray | string): string; /** If the encrypted param isn't already a JSON object, parse the stringfied value into one * Returns a JSON object */ export declare function ensureEncryptedValueIsObject(encrypted: EncryptedDataString | any): any;