import { LdKeyPairInstance } from '@transmute/ld-key-pair'; import { JsonWebKey2020, Sm2VerificationKey2020, Sm2VerificationKey2019 } from './types'; export declare class Sm2KeyPair implements LdKeyPairInstance { id: string; type: string; controller: string; publicKey: Uint8Array; privateKey?: Uint8Array; static generate: ({ secureRandom, }: { secureRandom: () => Uint8Array; }) => Promise; static from: (k: JsonWebKey2020 | Sm2VerificationKey2019 | Sm2VerificationKey2020) => Promise; static fromFingerprint({ fingerprint }: { fingerprint: string; }): Promise; constructor(opts: { id: string; type: string; controller: string; publicKey: Uint8Array; privateKey?: Uint8Array; }); fingerprint(): Promise; signer(type?: 'Sm2'): { sign({ data }: { data: import("@noble/curves/abstract/utils").Hex; }): Promise; }; verifier(type?: 'Sm2'): { verify({ data, signature, }: { data: import("@noble/curves/abstract/utils").Hex; signature: Uint8Array; }): Promise; }; export(options?: { privateKey?: boolean; type: 'JsonWebKey2020' | 'Sm2VerificationKey2020' | 'Sm2VerificationKey2019'; }): Promise; }