import type { PrivateKey } from "@libp2p/interface"; export type PeerIdJSON = { id: string; pubKey: string; privKey: string; }; export declare function exportToJSON(privateKey: PrivateKey): PeerIdJSON; export declare function createFromJSON(obj: PeerIdJSON): PrivateKey; export declare function writePrivateKey(filepath: string, privateKey: PrivateKey): void; export declare function readPrivateKey(filepath: string): PrivateKey; //# sourceMappingURL=peerId.d.ts.map