import { Namespace } from './namespace'; import type { Server } from './index'; import type { EventParams, EventsMap, DefaultEventsMap, EventNamesWithoutAck } from '../types/typed-events'; import type { DefaultSocketData } from '../types/socket-types'; /** * A parent namespace is a special {@link Namespace} that holds a list of child namespaces which were created either * with a regular expression or with a function. * * @example * const parentNamespace = io.of(/\/dynamic-\d+/); * * parentNamespace.on("connection", (socket) => { * const childNamespace = socket.nsp; * } * * // will reach all the clients that are in one of the child namespaces, like "/dynamic-101" * parentNamespace.emit("hello", "world"); * */ export declare class ParentNamespace extends Namespace { private static count; private readonly children; constructor(server: Server); /** * @private */ _initAdapter(): void; emit>(ev: Ev, ...args: EventParams): boolean; createChild(name: string): Namespace; fetchSockets(): Promise; }