import type { ChannelType } from 'ts-broadcasting'; /** * Create a new channel instance * * @example * // Broadcast to a public channel * await channel('orders').public('created', { id: 1 }) * * // Broadcast to a private channel * await channel('orders.123').private('updated', { status: 'shipped' }) * * // Broadcast to a presence channel * await channel('chat.room.1').presence('message', { text: 'Hello' }) */ export declare function channel(name: string): Channel; /** * Stacks Channel class for backward compatibility * Provides a fluent API for broadcasting to channels */ export declare class Channel { constructor(channel: string); presence(event: string, data?: any): Promise; broadcast(event: string, data?: any, type?: ChannelType): Promise; }