import { Client, EmbedBuilder } from "discord.js"; import { EmbedStyle } from "../main/index.js"; import { MessageEvents } from "../message/index.js"; import { SlashEvents } from "../slash/index.js"; import { GlobalCommand } from "../slash/types.js"; import { BaseCommand, Module as BaseModule, NonEmptyArray } from "./types.js"; export declare abstract class ManagementCenter, ModuleClass extends Module, Events = MessageEvents | SlashEvents> { protected eventHandler: { [event in keyof Events]: Events[event][]; }; protected readonly client: Client; protected modules: Module[]; protected validated: boolean; protected guild_ids?: string[] | GlobalCommand; helpText: string; helpEmbed?: EmbedBuilder; private centerType; constructor(client: Client, centerType: "Message" | "Slash", eventHandler: { [event in keyof Events]: Events[event][]; }, guild_ids?: string[] | GlobalCommand); addModules(...modules: NonEmptyArray): void; on(event: T, callback: Events[T]): void; protected hasHandler(event: keyof Events): boolean; protected runAllHandler(event: T, ...args: Parameters): Promise; /** * Generate Cog that contains Help Command * * Should be called **after** all cogs are added and **before** commands validation. * * Make sure to **NOT** name any cog `Help` or any command `help` */ useHelpCommand(_?: EmbedStyle): void; /** * No multiple Cogs or commands should have same name, * and `Cog.commands` key and value must be the same command name * * This function will ensure that and should be called after all cogs are added * * **Note**: It is recommended to use `checkLogin()` instead for simplicity */ validateCommands(): Promise; protected generateHelpCommand(): string; protected generateHelpCommandAsEmbed(): EmbedBuilder; protected unionAllGuildIds(): HasGlobal extends true ? string[] | GlobalCommand : string[]; protected allCommands?: BaseCommand[]; protected getAllCommands(): BaseCommand[]; } //# sourceMappingURL=Center.d.ts.map