import { DynamicModule, FactoryProvider, ModuleMetadata } from '@nestjs/common'; import Pusher from 'pusher'; export type NestJsPusherAsyncOptions = Pick & Pick, 'useFactory' | 'inject'>; export declare class PusherModule { /** * Provides a dynamic module for your application * @param options Pusher options * @param chunkingOptions By default its enabled, the max pusher limit is 10MB therefore we set 9216MB as the limit to prevent overflow or reaching its limit * @param isGlobal Whether this module should be globally imported, by default its true */ static forRoot(options: Pusher.Options, chunkingOptions?: { limit: number; enabled: boolean; }, isGlobal?: boolean): DynamicModule; static forRootAsync(options: NestJsPusherAsyncOptions, isGlobal?: boolean): DynamicModule; } export interface NestJsPusherOptions { options: Pusher.Options; chunkingOptions?: { limit: number; enabled: boolean; }; }