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 { WeComRuntimeCaches } from '../state/caches.js'; import type { WeComRawCallback, WeComWsClient } from '../transport/ws-client.js'; export interface ParsedWeComMessage { senderId: string; groupId?: string; messageId: string; msgtype: string; text: string; quoteText?: string; mediaItems: Array<{ url: string; filename: string; kind: 'image' | 'audio' | 'file'; }>; } export declare function parseWeComCallbackBody(body: Record): ParsedWeComMessage | undefined; export declare function createWeComInboundPipeline(deps: { getConfig: () => Config; bus: MessageBus; host: NonNullable; caches: WeComRuntimeCaches; getClient: (accountId: string) => WeComWsClient | undefined; }): { handleCallback: (accountId: string, scope: string, cb: WeComRawCallback, restoreInbox: () => void) => Promise; flushAll: () => Promise; };