import { type Express } from 'express'; import type * as http from 'http'; import type { BotWebsiteConfig, BotWebsiteStats } from './types'; export declare class BotWebsite { /** The underlying Express app — add your own routes here */ readonly app: Express; private _config; private _stats; private _server; private _cachedHtml; constructor(config: BotWebsiteConfig); private _setupRoutes; /** * Update live stats. The frontend polls `/devcodes-website/stats` and * will reflect the new numbers automatically. * * @example * const counts = await client.guilds.fetch(); * site.setStats({ serverCount: counts.size }); */ setStats(stats: BotWebsiteStats): this; /** * Update any part of the bot config and re-render the page. */ updateConfig(patch: Partial): this; /** * Start the web server. * * @example * site.listen(() => console.log('Website live!')); * site.listen(4000, () => console.log('Live on :4000')); */ listen(portOrCallback?: number | (() => void), callback?: () => void): http.Server; /** Stop the web server. */ close(callback?: (err?: Error) => void): void; } export { BotWebsiteConfig, BotWebsiteStats, BotWebsiteFeature, BotWebsiteCommand, BotWebsiteTheme } from './types'; //# sourceMappingURL=index.d.ts.map