export declare class XMPPUTils {
    messageId: any;
    static xmppUtils: XMPPUTils;
    constructor();
    static getXMPPUtils(): XMPPUTils;
    generateRandomID(): string;
    getUniqueMessageId(): string;
    getUniqueId(suffix: any): string;
    generateRandomFullJidForNode(jid: any, generatedRandomId: any): string;
    generateRandomFullJidForS2SNode(jid: any, generatedRandomId: any): string;
    getBareJIDFromFullJID(fullJid: any): any;
    getRoomJIDFromFullJID(fullJid: any): any;
    getRoomJIDWithOutDomainFromFullJID(fullJid: any): any;
    getDomainFromFullJID(fullJid: any): string;
    findChild(element: any, nodeNameToFind: any): any;
    isFromMobile(fullJid: any): boolean;
    isFromNode(fullJid: any): boolean;
    isFromS2S(fullJid: any): boolean;
    isFromTelJid(fullJid: any): boolean;
    isFromCalendarJid(fullJid: any): boolean;
    isFromPresenceJid(fullJid: any): boolean;
    getResourceFromFullJID(fullJid: any): any;
    /** Function: getBareJidFromJid
     *  Get the bare JID from a JID String.
     *
     *  Parameters:
     *    (String) jid - A JID.
     *
     *  Returns:
     *    A String containing the bare JID.
     */
    getBareJidFromJid(jid: any): any;
    offendXml(element: any): any;
    byteLen(s: string): number;
    willExceedStanzaLimit(contentJson: object | string, headOverhead?: number, limit?: number): {
        exceeds: boolean;
        estimated: number;
        limit: number;
    };
    private static readonly CDATA_END_SEQUENCE;
    private static readonly CDATA_ESCAPE_REPLACEMENT;
    /**
     * Estimates the size (UTF-8 bytes) of an XMPP stanza (ltx.Element).
     * Uses ltx's XML escaping for attributes/text and applies escapeXMLText
     * explicitly to body and content nodes as requested.
     */
    estimateStanzaByteSize(el: any): number;
    makeCData(content: string): {
        write: (writer: (chunk: string) => void) => void;
        toString: () => string;
    };
}
export declare let xu: XMPPUTils;
