import { init, clear } from './keystore/index.js'; import * as ecc from './ecc/index.js'; import * as rsa from './rsa/index.js'; import * as utils from './utils.js'; import * as idb from './idb.js'; import * as types from './types.js'; declare const _default: { ecc: typeof ecc; rsa: typeof rsa; idb: typeof idb; arrBufToStr(buf: ArrayBuffer, charSize: types.CharSize): string; arrBufToBase64(buf: ArrayBuffer): string; strToArrBuf(str: string, charSize: types.CharSize): ArrayBuffer; base64ToArrBuf(string: string): ArrayBuffer; publicExponent(): Uint8Array; randomBuf(length: number, { max }?: { max: number; }): ArrayBuffer; joinBufs(fst: ArrayBuffer, snd: ArrayBuffer): ArrayBuffer; structuralClone(obj: any): Promise; normalizeUtf8ToBuf: (msg: types.Msg) => ArrayBuffer; normalizeUtf16ToBuf: (msg: types.Msg) => ArrayBuffer; normalizeBase64ToBuf: (msg: types.Msg) => ArrayBuffer; normalizeUnicodeToBuf: (msg: types.Msg, charSize: types.CharSize) => ArrayBuffer; normalizeToBuf: (msg: types.Msg, strConv: (str: string) => ArrayBuffer) => ArrayBuffer; default: { arrBufToStr: typeof utils.arrBufToStr; arrBufToBase64: typeof utils.arrBufToBase64; strToArrBuf: typeof utils.strToArrBuf; base64ToArrBuf: typeof utils.base64ToArrBuf; publicExponent: typeof utils.publicExponent; randomBuf: typeof utils.randomBuf; joinBufs: typeof utils.joinBufs; normalizeUtf8ToBuf: (msg: types.Msg) => ArrayBuffer; normalizeUtf16ToBuf: (msg: types.Msg) => ArrayBuffer; normalizeBase64ToBuf: (msg: types.Msg) => ArrayBuffer; normalizeToBuf: (msg: types.Msg, strConv: (str: string) => ArrayBuffer) => ArrayBuffer; structuralClone: typeof utils.structuralClone; }; normalize(maybeCfg?: Partial | undefined, eccEnabled?: boolean): types.Config; eccEnabled(): Promise; merge(cfg: types.Config, overwrites?: Partial): types.Config; symmKeyOpts(cfg: types.Config): Partial; defaultConfig: types.Config; ECC_EXCHANGE_ALG: "ECDH"; ECC_WRITE_ALG: "ECDSA"; RSA_EXCHANGE_ALG: "RSA-OAEP"; RSA_WRITE_ALG: "RSASSA-PKCS1-v1_5"; SALT_LENGTH: 128; DEFAULT_CRYPTOSYSTEM: "ecc"; DEFAULT_ECC_CURVE: types.EccCurve.P_256; DEFAULT_RSA_SIZE: types.RsaSize.B2048; DEFAULT_SYMM_ALG: types.SymmAlg.AES_CTR; DEFAULT_SYMM_LEN: types.SymmKeyLength.B256; DEFAULT_CTR_LEN: 64; DEFAULT_HASH_ALG: types.HashAlg.SHA_256; DEFAULT_CHAR_SIZE: types.CharSize.B16; DEFAULT_STORE_NAME: "keystore"; DEFAULT_EXCHANGE_KEY_NAME: "exchange-key"; DEFAULT_WRITE_KEY_NAME: "write-key"; CryptoSystem: typeof types.CryptoSystem; EccCurve: typeof types.EccCurve; RsaSize: typeof types.RsaSize; SymmAlg: typeof types.SymmAlg; SymmKeyLength: typeof types.SymmKeyLength; HashAlg: typeof types.HashAlg; CharSize: typeof types.CharSize; KeyUse: typeof types.KeyUse; init: typeof init; clear: typeof clear; }; export default _default;