/** * Emit an event to a channel * * @example * // Simple emit to public channel * emit('orders', 'created', { id: 1, total: 99.99 }) * * // Emit to private channel * emit('orders.123', 'updated', { status: 'shipped' }, { private: true }) * * // Emit to presence channel * emit('chat.room.1', 'message', { text: 'Hello' }, { presence: true }) * * // Exclude specific users * emit('chat.room.1', 'message', { text: 'Hello' }, { exclude: 'user-123' }) */ export declare function emit(channel: string, event: string, data?: T, options?: EmitOptions): void; /** * Emit an event to a specific user * * @example * emitToUser('user-123', 'notification', { message: 'You have a new order!' }) */ export declare function emitToUser(userId: string | number, event: string, data?: T, options?: Omit): void; /** * Emit an event to multiple users * * @example * emitToUsers(['user-1', 'user-2'], 'announcement', { message: 'Server maintenance!' }) */ export declare function emitToUsers(userIds: (string | number)[], event: string, data?: T, options?: Omit): void; export declare interface EmitOptions { private?: boolean presence?: boolean exclude?: string | string[] driver?: string }