import { Socket } from "./socket.js"; export declare const MULTIPLEX_MAX_FILTERS = 10; export declare const MULTIPLEX_MAX_MEMBERS = 100; /** * Sends subscriptions that wait in a socket's queue together as one merged REQ, so requests made * at the same time use one of the relay's subscriptions rather than one each, and hands the * relay's answers back out under each subscription's own id. Merged REQs are pushed onto the * queue rather than sent, so the auth buffer keeps the original REQs to replay. Leave it out of a * pool's socket policies to send every subscription as it was asked for, or mark a single REQ with * `setMultiplex(req, false)` (a request's `multiplex: false`) to send just that one as it was. * @param socket - a Socket object * @return a cleanup function */ export declare const socketPolicyMultiplex: (socket: Socket) => () => void; //# sourceMappingURL=multiplex.d.ts.map