import type { Config } from '@xopcai/xopc/config/schema.js'; import type { ChannelConnectionProblem } from '@xopcai/xopc/channels/channel-domain.js'; import type { ChannelCapabilities, ChannelDoctorAdapter, ChannelOutboundAdapter, ChannelPlugin, ChannelPluginDefaults, ChannelPluginInitOptions, ChannelPluginReloadMeta, ChannelPluginStartOptions, ChannelStatusAdapter, ChannelStreamingAdapter } from '@xopcai/xopc/channels/plugin-types.js'; import type { ChannelDirectoryAdapter, ChannelRuntimeActionAdapter } from '@xopcai/xopc/channels/plugins/types.adapters.js'; import { type ResolvedDiscordAccount } from './state/accounts.js'; import { DiscordRuntimeCaches } from './state/caches.js'; export declare class DiscordChannelPlugin implements ChannelPlugin { readonly id: "discord"; readonly reload: ChannelPluginReloadMeta; readonly meta: { readonly id: "discord"; readonly label: "Discord"; readonly selectionLabel: "Discord Bot"; readonly docsPath: "/channels/discord"; readonly blurb: "Full-featured Discord Gateway, streaming, components, and server tools"; readonly order: 70; readonly deferConnectUntilAfterListen: true; }; readonly capabilities: ChannelCapabilities; readonly defaults: ChannelPluginDefaults; readonly configSchema: { schema: {}; validate: (raw: unknown) => { ok: true; errors?: undefined; } | { ok: false; errors: string[]; }; }; readonly configSurface: { buildConfigSurface(cfg: Config): Record; }; readonly pairing: import("@xopcai/xopc/channels/plugins/types.adapters.js").ChannelPairingAdapter; readonly caches: DiscordRuntimeCaches; private cfg; private bus; private host; private runtimes; private inbound?; private execApprovalUnregister?; config: { listAccountIds: (cfg: Config) => string[]; resolveAccount: (cfg: Config, accountId?: string | null) => ResolvedDiscordAccount; isEnabled: (account: ResolvedDiscordAccount) => boolean; isConfigured: (account: ResolvedDiscordAccount) => boolean; defaultAccountId: () => string; describeAccount: (account: ResolvedDiscordAccount) => { accountId: string; channelId: string; enabled: boolean; configured: boolean; status: string; error: string | undefined; }; }; runtimeActions: ChannelRuntimeActionAdapter; streaming: ChannelStreamingAdapter; outbound: ChannelOutboundAdapter; status: ChannelStatusAdapter; doctor: ChannelDoctorAdapter; directory: ChannelDirectoryAdapter; getCurrentConfig(): Config; private ensureBotVerified; init(options: ChannelPluginInitOptions): Promise; start(options?: ChannelPluginStartOptions): Promise; private startAccount; private stopAccount; stop(accountId?: string): Promise; channelIsRunning(): boolean; channelIsConnecting(): boolean; channelConnectionProblem(): ChannelConnectionProblem | undefined; onConfigUpdated(nextCfg: Config): Promise; } export declare const discordPlugin: DiscordChannelPlugin;