/**
 * Unified userId resolution for the correction pipeline.
 * Both Path A (agent tool) and Path B (post-session extraction) must
 * agree with the read path (sessionCtx.SenderId) to avoid orphaned records.
 */
/**
 * Resolve a userId from session key and/or delivery target.
 * Priority:
 *  1. deliveryTo — strip user:/feishu: prefix, validate not "main"
 *  2. sessionKey tail — must be a valid ou_xxx open_id
 *  3. sessionKey parts[1] fallback
 */
export declare function resolveCorrectionUserId(sessionKey?: string, deliveryTo?: string): string | null;
