export declare const getHashes: string[]; export declare const encodeType: string[]; export declare const ab2Hex: (buf: ArrayBuffer) => string; export declare const ab2str: (buf: ArrayBuffer) => string; export declare const str2ab: (str: string) => ArrayBuffer; export declare const abToBase64: (ab: ArrayBuffer) => string; export declare const base64ToAb: (base64: string) => ArrayBuffer; export declare const exportTypeList = "raw,pkcs8,spki,jwk"; export declare const genKey: (name?: string, modulusLength?: number, hash?: string, exportType?: any) => Promise<{ privateKey: any; publicKey: any; } | { privateKey: string; publicKey?: undefined; } | { privateKey?: undefined; publicKey?: undefined; }>; export declare const str2utf8: (str: string) => Uint8Array; export declare const getSpkiDer: (spkiPem: string) => ArrayBuffer; export interface PariKey { privateKey?: string; publicKey?: string; } export declare const exportPkcsKeyPair: (keyPair: any) => Promise;