export interface IMiddleware { auth?: (clientId: string, request: TConnection) => Promise; before?: (clientId: string, request: TConnection) => Promise; after?: (clientId: string) => Promise; } export declare class Middleware implements IMiddleware { constructor(middleware: IMiddleware); /** * Dummy implementation of middleware functions */ auth(clientId: string, request: TConnection): Promise; before(clientId: string, request: TConnection): Promise; after(clientId: string): Promise; }