import type { PrivateKey, KeyType } from '@libp2p/interface'; import type { KeychainInit } from '@libp2p/keychain'; import type { Datastore } from 'interface-datastore'; export interface LoadOrCreateSelfKeyOptions extends KeychainInit { /** * If no private key is found in the datastore, create one with this type * * @default 'Ed25519' */ keyType?: KeyType; } export declare function loadOrCreateSelfKey(datastore: Datastore, init?: LoadOrCreateSelfKeyOptions): Promise; //# sourceMappingURL=load-private-key.d.ts.map