import { INestApplication } from "@nestjs/common";
import { Path } from "path-parser";
import { WebSocketAcceptor } from "tgrid";
export declare class WebSocketAdaptor {
    static upgrade(app: INestApplication): Promise<WebSocketAdaptor>;
    readonly close: () => Promise<void>;
    protected constructor(app: INestApplication, operations: IOperator[]);
    private readonly handleUpgrade;
    private readonly http;
    private readonly operators;
    private readonly ws;
}
interface IOperator {
    parser: Path;
    handler: (props: {
        params: Record<string, string>;
        acceptor: WebSocketAcceptor<any, any, any>;
    }) => Promise<any>;
}
export {};
