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 ResolvedWeComAccount } from './state/accounts.js'; import { WeComRuntimeCaches } from './state/caches.js'; import { WeComWsClient } from './transport/ws-client.js'; export declare class WeComChannelPlugin implements ChannelPlugin { readonly id: "wecom"; readonly reload: ChannelPluginReloadMeta; readonly meta: { readonly id: "wecom"; readonly label: "WeCom"; readonly selectionLabel: "WeCom"; readonly docsPath: "/channels/wecom"; readonly blurb: "Full-featured WeCom AI Bot over WebSocket with native streaming, rich media, and agent tools"; readonly order: 50; 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: WeComRuntimeCaches; readonly runtimeActions: import("@xopcai/xopc/channels/plugins/types.adapters.js").ChannelRuntimeActionAdapter; private cfg; private bus; private host; private runtimes; private inbound?; config: { listAccountIds: (cfg: Config) => string[]; resolveAccount: (cfg: Config, accountId?: string | null) => ResolvedWeComAccount; isEnabled: (account: ResolvedWeComAccount) => boolean; isConfigured: (account: ResolvedWeComAccount) => boolean; defaultAccountId: () => string; describeAccount: (account: ResolvedWeComAccount) => { accountId: string; channelId: string; enabled: boolean; configured: boolean; status: string; error: string | undefined; }; }; getConfig(): Config; getClient(accountId?: string): WeComWsClient | undefined; init(options: ChannelPluginInitOptions): Promise; start(options?: ChannelPluginStartOptions): Promise; private startAccount; private stopAccount; stop(): Promise; onConfigUpdated(newConfig: Config): Promise; reloadConfig(newConfig: Config): Promise; channelIsRunning(_cfg: Config): boolean; channelIsConnecting(_cfg: Config): boolean; channelConnectionProblem(_cfg: Config): ChannelConnectionProblem | undefined; outbound: ChannelOutboundAdapter; streaming: ChannelStreamingAdapter; status: ChannelStatusAdapter; doctor: ChannelDoctorAdapter; } export declare const wecomPlugin: WeComChannelPlugin;