import { PrivateKeyInfo, PublicKeyInfoValue, SubjectPublicKeyInfo } from "../asn1/shemas/AttestationFramework"; export interface KeysArray { [index: string]: KeyPair[] | KeyPair; } export interface KeysConfig { [key: string]: KeyPair | KeyPair[] | string; } export declare let subtle: any; export declare class KeyPair { private constructor(); private privKey; private pubKey; private algorithm; private ethereumPrefix; private algorithmASNList; getPrivateAsUint8(): Uint8Array; getPrivateAsHexString(): string; getPrivateAsBigInt(): bigint; static privateFromBigInt(priv: bigint): KeyPair; static fromPublicHex(publicHex: string): KeyPair; static fromPrivateUint8(privateUint: Uint8Array, keyAlg?: string): KeyPair; static publicFromBase64orPEM(encoded: string): KeyPair; static publicFromPEM(pem: string): KeyPair; static publicFromUint(key: Uint8Array): KeyPair; static publicFromSubjectPublicKeyInfo(spki: SubjectPublicKeyInfo): KeyPair; static publicFromSubjectPublicKeyValue(spki: PublicKeyInfoValue): KeyPair; static privateFromKeyInfo(spki: PrivateKeyInfo): KeyPair; static privateFromKeyDataPEM(pem: string): KeyPair; getAlgorithNameFromASN1(alg: string): string; static privateFromPEM(pem: string): KeyPair; static generateKeyAsync(): Promise; static createKeys(): KeyPair; getPublicKeyAsHexStr(): string; getAsnDerPublic(): string; getAddress(): string; signBytes(bytes: number[]): string; signStringWithEthereum(message: string): string; signHexStringWithEthereum(message: string): string; signBytesWithEthereum(bytes: number[]): string; signDeterministicSHA256(bytes: number[]): string; verifyDeterministicSHA256(bytes: number[], signature: string): boolean; verifyHexStringWithEthereum(message: string, signature: string): boolean; signRawBytesWithEthereum(bytes: number[]): string; verifyBytesWithEthereum(bytes: number[], signature: string): boolean; getJWTParams(): { crv: string; d: string; key_ops: string[]; kty: string; x: string; y: string; }; getSubtlePrivateKey(): any; getSubtlePublicKey(): any; signStringWithSubtle(msg: string): Promise; verifyStringWithSubtle(signature: Uint8Array, msg: string): Promise; verifyStringWithSubtleDerSignature(signature: Uint8Array, msg: string): Promise; static anySignatureToRawUint8(derSignature: Uint8Array | string): Uint8Array; static parseKeyArrayStrings(keys: { [key: string]: KeyPair[] | KeyPair | string; }): KeysArray; }