import type { SessionStore } from '@xopcai/xopc/session/store.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: SessionStore, ilinkPeerId: string): Promise<string | undefined>;
/** Like {@link normalizeWeixinCronDeliveryTo}, plus session-index lookup for bare ilink user ids. */
export declare function normalizeWeixinCronDeliveryToResolved(to: string, sessionStore?: SessionStore): Promise<NormalizedWeixinCronDelivery>;
