/// <reference types="bun-types" />
/// <reference types="node" />
/// <reference types="bun-types" />
import type { Server, ServerWebSocket } from 'bun';
export default class BaseSocketHandler {
    static channel: string;
    static server: Server;
    static websocket: ServerWebSocket;
    /**
     *
     * @param req {Request}
     * @param server {Server}
     * @returns
     */
    upgrade(req: Request, server: Server): Promise<void>;
    /**
     *
     * @param ws {ServerWebSocket}
     * @param message {String}
     */
    accept(ws: ServerWebSocket, message: string): Promise<void>;
    /**
     *
     * @param ws {ServerWebSocket}
     */
    connect(ws: ServerWebSocket): Promise<void>;
    /**
     *
     * @param ws {ServerWebSocket}
     * @param code {number}
     * @param reason {reason}
     */
    disconnect(ws: ServerWebSocket, code: number, reason: string): Promise<void>;
    getInstance(): ServerWebSocket;
    static parse(url: String): any;
}
//# sourceMappingURL=BaseSocketHandler.d.ts.map