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 } from '@xopcai/xopc/channels/plugins/types.adapters.js'; import { type EnterpriseRegistration } from '@xopcai/xopc/channels/enterprise/setup.js'; import { type ResolvedDingTalkAccount } from './state/accounts.js'; import { DingTalkRuntimeCaches } from './state/caches.js'; import { DingTalkClient } from './transport/client.js'; export declare function beginDingTalkRegistration(signal: AbortSignal): Promise; export declare class DingTalkChannelPlugin implements ChannelPlugin { readonly id: "dingtalk"; readonly reload: ChannelPluginReloadMeta; readonly meta: { readonly id: "dingtalk"; readonly label: "DingTalk"; readonly selectionLabel: "DingTalk"; readonly docsPath: "/channels/dingtalk"; readonly blurb: "Full-featured DingTalk Stream bot with rich media, AI Card streaming, and workspace tools"; readonly order: 40; 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: DingTalkRuntimeCaches; readonly runtimeActions: import("@xopcai/xopc/channels/plugins/types.adapters.js").ChannelRuntimeActionAdapter; private cfg; private bus; private host; private runtimes; private clients; private inbound?; config: { listAccountIds: (cfg: Config) => string[]; resolveAccount: (cfg: Config, accountId?: string | null) => ResolvedDingTalkAccount; isEnabled: (account: ResolvedDingTalkAccount) => boolean; isConfigured: (account: ResolvedDingTalkAccount) => boolean; defaultAccountId: () => string; describeAccount: (account: ResolvedDingTalkAccount) => { accountId: string; channelId: string; enabled: boolean; configured: boolean; status: string; error: string | undefined; }; }; getConfig(): Config; getClient(accountId?: string): DingTalkClient | 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; directory: ChannelDirectoryAdapter; status: ChannelStatusAdapter; doctor: ChannelDoctorAdapter; } export declare const dingtalkPlugin: DingTalkChannelPlugin;