import { ActivityOptions, Client } from "discord.js"; import { ArrayLoader } from "./loader.js"; export declare function isGroupLoader(loader: ArrayLoader): loader is ActivityGroupLoader; export declare class ActivityManager { readonly loader: ArrayLoader | ActivityGroupLoader; private readonly getRandomFunc; readonly client: Client; static assertInterval(interval: number): void; /** * Set random activity periodically, note that you need to manually call * `nextActivity` after client is ready to set activity after login * otherwise you will need to wait `interval` for it to be set * * @param interval In milliseconds, if set to 0 will disable the periodic */ constructor(loader: ArrayLoader | ActivityGroupLoader, client: Client, interval?: number); /** * Set random activity * * @returns `true` if set, `false` if client is not ready */ nextActivity(): boolean; } export type UsableActivity = NonNullable; export type ActivityGroup = { [type in UsableActivity]?: Array>; }; export declare class ActivityGroupLoader extends ArrayLoader { private builtData; constructor(filePath: string); getBuiltRandom(): ActivityOptions | undefined; reload(): Promise; } //# sourceMappingURL=activity.d.ts.map