import type { SessionListReader } from '@xopcai/xopc/session/store-reader.js'; export type NormalizedWeixinCronDelivery = { chatId: string; /** Set on OutboundMessage.metadata for multi-account Weixin */ accountId?: string; }; /** * Resolves Weixin ilink `chat_id` and optional `accountId` from cron / UI `delivery.to`. */ export declare function normalizeWeixinCronDeliveryTo(to: string): NormalizedWeixinCronDelivery; /** * If exactly one indexed weixin DM session matches `ilinkPeerId`, return that session's accountId. */ export declare function resolveWeixinAccountIdFromSessions(store: SessionListReader, ilinkPeerId: string): Promise; /** Like {@link normalizeWeixinCronDeliveryTo}, plus session-index lookup for bare ilink user ids. */ export declare function normalizeWeixinCronDeliveryToResolved(to: string, sessionStore?: SessionListReader): Promise;