import type { Config } from '@xopcai/xopc/config/schema.js'; import type { MessageBus } from '@xopcai/xopc/infra/bus/index.js'; import type { ResolvedWeixinAccount } from '../auth/accounts.js'; export type WeixinMonitorState = 'connecting' | 'polling' | 'reconnect-required'; export type MonitorWeixinOpts = { account: ResolvedWeixinAccount; config: Config; bus: MessageBus; abortSignal?: AbortSignal; longPollTimeoutMs?: number; onState?: (state: WeixinMonitorState) => void; }; /** Persist each fetched batch before using the next platform cursor. */ export declare function monitorWeixinProvider(opts: MonitorWeixinOpts): Promise;