import { EventEmitter } from "node:events"; import type { AoiClient } from "./AoiClient"; import type { PossiblyAsync } from "./AoiTyping"; declare class CustomEvent extends EventEmitter { readonly telegram: AoiClient; constructor(telegram: AoiClient, options?: { process?: { exit?: boolean; worker?: boolean; SIGINT?: boolean; message?: boolean; warning?: boolean; SIGTERM?: boolean; beforeExit?: boolean; disconnect?: boolean; multipleResolves?: boolean; rejectionHandled?: boolean; uncaughtException?: boolean; unhandledRejection?: boolean; uncaughtExceptionMonitor?: boolean; }; }); command(options: { listen: string; once?: boolean; type?: "aoitelegram"; searchFailed?: boolean; reverseReading?: boolean; code: string; } | { listen: string; once?: boolean; type: "javascript"; callback: (...args: any[]) => PossiblyAsync; }): CustomEvent; loadEvents(dirPath: string, logger?: boolean): CustomEvent; addProcessListener(eventNames: { [key: string]: boolean; }, eventName: string, emitEventName: string): void; emit(name: string, ...args: T[]): boolean; } export { CustomEvent };