7 lines
228 B
TypeScript
7 lines
228 B
TypeScript
|
export type ProtocolHandler = (peer: any, muxer: any) => void;
|
||
|
export declare class ProtocolManager {
|
||
|
constructor(swarm: any);
|
||
|
register(name: string, handler: ProtocolHandler): boolean;
|
||
|
}
|
||
|
//# sourceMappingURL=swarm.d.ts.map
|