/** * borrow from https://github.com/excalidraw/excalidraw/blob/7f66e1fe897873713ba04410534be2d97b9139af/packages/excalidraw/data/encryption.ts#L17 */ export declare const ENCRYPTION_KEY_BITS = 128; export declare const IV_LENGTH_BYTES = 12; export declare const blobToArrayBuffer: (blob: Blob) => Promise; export declare const createIV: () => Uint8Array; export declare const generateEncryptionKey: (returnAs?: T) => Promise; export declare const getCryptoKey: (key: string, usage: KeyUsage) => Promise; export declare const encryptData: (key: string | CryptoKey, data: Uint8Array | ArrayBuffer | Blob | File | string) => Promise<{ encryptedBuffer: ArrayBuffer; iv: Uint8Array; }>; export declare const decryptData: (iv: Uint8Array, encrypted: Uint8Array | ArrayBuffer, privateKey: string) => Promise;