export type ShouldSendMiddleware = (req: Req, res: Res, eventName: string) => boolean; /** * Decorates the route (requires PusherEvent) to check whether the event should be sent or not conditionally * @default true * @param middleware * @constructor */ export declare function PusherSendGuard(middleware: ShouldSendMiddleware): MethodDecorator;