import { EncryptedDataKey } from './types';
declare type EncryptedKeyOrEncryptedKeyPromise = EncryptedDataKey | Promise<EncryptedDataKey>;
declare const createCryptoService: (userId: string) => {
    encryptString: (data: string, maybeEncryptedKeyPromise?: EncryptedKeyOrEncryptedKeyPromise) => Promise<any[]>;
    encryptBlobs: (blobArray: Blob[], maybeEncryptedKeyPromise?: EncryptedKeyOrEncryptedKeyPromise) => Promise<({
        commonKeyId: string;
        encryptedKey: any;
    } | any[])[]>;
    encryptObject: (json: Record<string, any>, maybeEncryptedKeyPromise?: EncryptedKeyOrEncryptedKeyPromise) => Promise<any[]>;
    decryptData: (encryptedKeyInfo: EncryptedDataKey, encryptedData: Uint8Array) => Promise<any>;
    updateKeys: (...encryptedKeyInfos: EncryptedDataKey[]) => Promise<{
        commonKeyId: string;
        encryptedKey: any;
    }[]>;
};
export default createCryptoService;
