/**
 * The following code is modified based on
 * https://github.com/webpack/webpack-dev-server
 *
 * MIT Licensed
 * Author Tobias Koppers @sokra
 * Copyright (c) JS Foundation and other contributors
 * https://github.com/webpack/webpack-dev-server/blob/main/LICENSE
 */
import type { CommunicationClient, EXPECTED_ANY } from './type.js';
export declare let client: CommunicationClient | null;
declare function socket(url: string, handlers: {
    [handler: string]: (data?: EXPECTED_ANY, params?: EXPECTED_ANY) => EXPECTED_ANY;
}, reconnect?: number): void;
export default socket;
