History-sync download and payload processing.
This module mirrors Baileys' history helper boundary: resolve the notification payload, inflate it, decode the minimal HistorySync proto surface, and return the chats/contacts/messages/mapping data needed by the messaging runtime.
Summary
Functions
Processes a history sync notification, downloading and inflating the payload if necessary.