/** * PubSub namespace — provides a scoped API surface for pub/sub operations. * * Usage: * client.pubsub.channel('chat').subscribe(cb); * client.pubsub.channel('chat').publish({ text: 'Hello!' }); * * This is a lightweight proxy that delegates to the main WSocket instance. */ import type { Channel } from './channel.js'; export { Channel } from './channel.js'; export { Presence } from './presence.js'; /** Namespaced pub/sub API — access via `client.pubsub` */ export declare class PubSubNamespace { private channelFn; constructor(channelFn: (name: string) => Channel); /** * Get or create a channel by name. * * @param name - Channel name * @returns The {@link Channel} instance for the given name */ channel(name: string): Channel; } //# sourceMappingURL=index.d.ts.map