import { IMessage } from '../types/types';
interface IMessageWithNewData extends IMessage {
    [x: string]: any;
}
/**
 * Build an IMessage from XML.
 *
 * Two calling conventions are supported:
 *
 * 1. **Wrapped (used by getHistory.xmpp.ts)**:
 *      createMessageFromXml({ data, id, body, roomJid, date, user, ...rest })
 *    where `data` is the inner XML `<data>` element's attrs.
 *
 * 2. **Positional (used by onRealtimeMessage / onMessageHistory)**:
 *      createMessageFromXml(dataAttrs, bodyElement, id, fromJid, deleted)
 *
 * Both fan into the same merge logic that flattens senderFirstName /
 * senderLastName / senderJID into `user.{name, firstName, lastName, id}`.
 */
export declare const createMessageFromXml: (arg: IMessageWithNewData, bodyEl?: any, positionalId?: string, positionalFrom?: string, positionalDeleted?: boolean) => Promise<IMessage>;
export {};
//# sourceMappingURL=createMessageFromXml.d.ts.map