/**
 * @license
 * Copyright 2022-2026 Matter.js Authors
 * SPDX-License-Identifier: Apache-2.0
 */
import type { HttpEndpoint } from "./HttpEndpoint.js";
/**
 * Create a linked pair of mock {@link HttpEndpoint.WsConnection}s for testing.
 *
 * Writing to one side's writable makes the data appear in the other side's readable.  No actual WebSocket is involved.
 */
export declare function MockWsConnection(): MockWsConnection.Pair;
export declare namespace MockWsConnection {
    interface Pair {
        client: HttpEndpoint.WsConnection;
        server: HttpEndpoint.WsConnection;
    }
    /**
     * Send a JSON message on a {@link HttpEndpoint.WsConnection} writable.
     */
    function send(connection: HttpEndpoint.WsConnection, message: object): Promise<void>;
    /**
     * Read and parse a JSON message from a {@link HttpEndpoint.WsConnection} readable.
     */
    function receive(connection: HttpEndpoint.WsConnection): Promise<any>;
}
//# sourceMappingURL=MockWsConnection.d.ts.map