import { SymmAlg } from "keystore-idb/types.js";
export declare const sha256Str: (str: string) => Promise<string>;
export declare const hash: {
    sha256: (bytes: Uint8Array) => Promise<Uint8Array>;
    sha256Str: (str: string) => Promise<string>;
};
export declare const aes: {
    encrypt: (data: Uint8Array, keyStr: string, alg: SymmAlg) => Promise<Uint8Array>;
    decrypt: (encrypted: Uint8Array, keyStr: string, alg: SymmAlg) => Promise<Uint8Array>;
    genKeyStr: (alg?: SymmAlg | undefined) => Promise<string>;
    decryptGCM: (encrypted: string, keyStr: string, ivStr: string) => Promise<string>;
};
export declare const rsa: {
    decrypt: (data: Uint8Array, privateKey: CryptoKey) => Promise<any>;
    encrypt: (message: Uint8Array, keyStr: string) => Promise<any>;
    genKey: () => Promise<CryptoKeyPair>;
    verify: (message: Uint8Array, signature: Uint8Array, publicKey: Uint8Array) => Promise<boolean>;
};
export declare const ed25519: {
    verify: (message: Uint8Array, signature: Uint8Array, publicKey: Uint8Array) => Promise<boolean>;
};
export declare const keystore: {
    publicExchangeKey: () => Promise<string>;
    publicWriteKey: () => Promise<string>;
    decrypt: (encrypted: string) => Promise<string>;
    sign: (message: string, charSize: number) => Promise<string>;
    importSymmKey: (key: string, name: string) => Promise<void>;
    exportSymmKey: (name: string) => Promise<string>;
    keyExists: (keyName: string) => Promise<boolean>;
    getAlg: () => Promise<string>;
    clear: () => Promise<void>;
};
