import * as Pusher from 'pusher'; export declare class PusherService { private readonly options; private readonly chunkingOptions; private readonly pusher; private readonly logger; constructor(options: Pusher.Options, chunkingOptions: { limit: number; enabled: boolean; }); /** * Returns the underlying pusher instance */ getPusherInstance(): Pusher; /** * Authenticates the target `socketId` into a private channel * * @param socketId * @param channelName * @param data */ authorizeChannel(socketId: string, channelName: string, data?: Pusher.PresenceChannelData): Pusher.ChannelAuthResponse; /** * Sends an event to the given channel and optionally exclude a socket id if provided * If the data is undefined or null an error message will be thrown * * @param channel * @param event * @param data * @param socketId */ trigger(channel: string | string[], event: string, data?: T, socketId?: string): Promise; }