import type { Config } from '@xopcai/xopc/config/schema.js'; import type { ChannelPluginInitOptions } from '@xopcai/xopc/channels/plugin-types.js'; import type { MessageBus } from '@xopcai/xopc/infra/bus/index.js'; import type { DingTalkRuntimeCaches } from '../state/caches.js'; import type { DingTalkClient } from '../transport/client.js'; interface ParsedDingTalkPayload { senderId: string; senderNick?: string; groupId?: string; conversationTitle?: string; messageId: string; msgtype: string; text: string; mentioned: boolean; downloadItems: Array<{ downloadCode: string; filename: string; kind: 'image' | 'audio' | 'video' | 'file'; }>; sessionWebhook?: string; } export declare function parseDingTalkCallbackPayload(value: unknown): ParsedDingTalkPayload | undefined; export declare function createDingTalkInboundPipeline(deps: { getConfig: () => Config; bus: MessageBus; host: NonNullable; caches: DingTalkRuntimeCaches; getClient: (accountId: string) => DingTalkClient | undefined; }): { handleCallback: (accountId: string, scope: string, payload: unknown, restoreInbox: () => void) => Promise; flushAll: () => Promise; }; export {};