import type { PeerId } from "@libp2p/interface"; import { Keypair, PrivateSignKey, PublicSignKey } from "./key.js"; import { PreHash } from "./prehash.js"; import { SignatureWithKey } from "./signature.js"; import { type Identity, type SignWithKey } from "./signer.js"; export declare class Ed25519PublicKey extends PublicSignKey { publicKey: Uint8Array; constructor(properties: { publicKey: Uint8Array; }); equals(other: PublicSignKey): boolean; toString(): string; toPeerId(): PeerId; static fromPeerId(id: PeerId): Ed25519PublicKey; } export declare class Ed25519PrivateKey extends PrivateSignKey { privateKey: Uint8Array; constructor(properties: { privateKey: Uint8Array; }); equals(other: Ed25519PrivateKey): boolean; toString(): string; keyObject: any; } export declare class Ed25519Keypair extends Keypair implements Identity { publicKey: Ed25519PublicKey; privateKey: Ed25519PrivateKey; constructor(properties: { publicKey: Ed25519PublicKey; privateKey: Ed25519PrivateKey; }); static create(): Promise; sign(data: Uint8Array, prehash?: PreHash): Promise; signer(prehash: PreHash): SignWithKey; equals(other: Keypair): boolean; _privateKeyPublicKey: Uint8Array; get privateKeyPublicKey(): Uint8Array; toPeerId(): PeerId; } //# sourceMappingURL=ed25519.d.ts.map