import { identity } from 'multiformats/hashes/identity'; export declare const keysPBM: { KeyType: { RSA: string; Ed25519: string; Secp256k1: string; }; }; export declare const supportedKeys: { ed25519: { generateKeyPair: typeof generateEd25519KeyPair; }; secp256k1: { generateKeyPair: typeof generateSecp256k1KeyPair; }; }; export declare class Secp256k1PublicKey { readonly type = "secp256k1"; private readonly key; constructor(key: Uint8Array); verify(data: Uint8Array, sig: Uint8Array): Promise; marshal(): Uint8Array; get raw(): Uint8Array; get bytes(): Uint8Array; equals(key: { bytes: Uint8Array; }): boolean; hash(): Promise; toMultihash(): ReturnType; toCID(): { code: number; multihash: ReturnType; }; } export declare class Secp256k1PrivateKey { readonly type = "secp256k1"; private readonly key; private readonly publicKey; constructor(key: Uint8Array, publicKey?: Uint8Array); sign(message: Uint8Array): Promise; get public(): Secp256k1PublicKey; marshal(): Uint8Array; get raw(): Uint8Array; get bytes(): Uint8Array; equals(key: { bytes: Uint8Array; }): boolean; hash(): Promise; id(): Promise; export(): never; } export declare class Ed25519PublicKey { readonly type = "Ed25519"; private readonly key; constructor(key: Uint8Array); verify(data: Uint8Array, sig: Uint8Array): boolean; marshal(): Uint8Array; get raw(): Uint8Array; get bytes(): Uint8Array; equals(key: { bytes: Uint8Array; }): boolean; hash(): ReturnType; toMultihash(): ReturnType; } export declare class Ed25519PrivateKey { readonly type = "Ed25519"; private readonly key; private readonly publicKey; constructor(key: Uint8Array, publicKey?: Uint8Array); sign(message: Uint8Array): Uint8Array; get public(): Ed25519PublicKey; marshal(): Uint8Array; get raw(): Uint8Array; get bytes(): Uint8Array; equals(key: { bytes: Uint8Array; }): boolean; id(): Promise; export(): never; } export declare const RsaPrivateKey: { new (): {}; }; export declare const RsaPublicKey: { new (): {}; }; export declare const MAX_RSA_KEY_SIZE = 8192; export declare function generateKeyPair(type?: string): Promise; export declare function generateKeyPairFromSeed(type: string, seed: Uint8Array): Promise; export declare function unmarshalPublicKey(buf: Uint8Array): Secp256k1PublicKey | Ed25519PublicKey; export declare function unmarshalPrivateKey(buf: Uint8Array): Promise; export declare function marshalPublicKey(key: { bytes: Uint8Array; }): Uint8Array; export declare function marshalPrivateKey(key: { bytes: Uint8Array; }): Uint8Array; export declare function publicKeyToProtobuf(key: { bytes: Uint8Array; }): Uint8Array; export declare function privateKeyToProtobuf(key: { bytes: Uint8Array; }): Uint8Array; export declare function publicKeyFromProtobuf(buf: Uint8Array): Secp256k1PublicKey | Ed25519PublicKey; export declare function privateKeyFromProtobuf(buf: Uint8Array): Promise; export declare function privateKeyFromRaw(buf: Uint8Array): Secp256k1PrivateKey | Ed25519PrivateKey; export declare function publicKeyFromMultihash(multihash: { digest: Uint8Array; }): Secp256k1PublicKey | Ed25519PublicKey; export declare function privateKeyToCryptoKeyPair(): never; export declare const keyStretcher: () => Promise; export declare const generateEphemeralKeyPair: () => Promise; export declare function importKey(): never; declare function generateSecp256k1KeyPair(): Secp256k1PrivateKey; declare function generateEd25519KeyPair(): Ed25519PrivateKey; export {}; //# sourceMappingURL=libp2p-crypto-keys.d.ts.map