import type { ClientEvents, GatewayDispatchEvents } from 'discord.js'; import type { GClient } from '../GClient'; export interface ListenerOptions { event: Event | string; name: string; once?: boolean; ws?: WS; fileName?: string; run?: (...args: Event extends keyof ClientEvents ? ClientEvents[Event] : Array) => any; } export declare class Listener { client: GClient; event: Event | string; name: string; once?: boolean; ws?: WS; fileName?: string; run: (...args: Array) => any; owner?: string; reloading: boolean; options: ListenerOptions; constructor(options: ListenerOptions); initialize(client: GClient): void; unregister(): Listener | void; _run(...args: Array): Promise; reload(): Promise; } //# sourceMappingURL=Listener.d.ts.map