import { GlobalPlugin } from '../plugins/GlobalPlugin.js'; import { ConnectionAcceptedEvent } from './AuthBridge.js'; import { Connection } from './Connection.js'; import { RoomManager } from './RoomManager.js'; export declare class PluginManager { /** * Plugins. All aliases of a command/plugin points to the same command instance. */ commands: { [commandName: string]: GlobalPlugin; }; /** * Plugins */ plugins: GlobalPlugin[]; start(roomManager: RoomManager): void; getCommand(commandName: string): GlobalPlugin; /** * Called each time a new connection is created (by SkyChatServer) */ onConnectionCreated(connection: Connection, event: ConnectionAcceptedEvent): Promise; onConnectionBinary(connection: Connection, { type, data }: { type: number; data: Buffer; }): Promise; private onConnectionMessage; private executeNewMessageHook; private executeNewConnectionHook; private executeConnectionClosedHook; }