import type { EventEmitter2 } from "eventemitter2"; import { RPCMethod, RPCServer } from "./rpc.js"; import { Logger } from "pino"; import SSLManager from "./ssl.js"; import type { HDKey } from "micro-ed25519-hdkey"; import Config from "./config.js"; export type PluginFunction = (api: PluginAPI) => Promise; export interface Plugin { name: string; plugin: PluginFunction; exports?: any; default?: Plugin; } export declare class PluginAPI extends EventEmitter2 { private _server; constructor({ config, logger, server, swarm, }: { config: Config; logger: Logger; server: RPCServer; swarm: any; }); private _swarm; get swarm(): any; private _config; get config(): Config; private _logger; get logger(): Logger; get rpcServer(): RPCServer; get seed(): Uint8Array; get identity(): HDKey; get ssl(): SSLManager; loadPlugin(moduleName: string): (moduleName: string) => Promise; registerMethod(methodName: string, method: RPCMethod): void; } //# sourceMappingURL=plugin.d.ts.map