declare namespace _default {
    /**
     * Allows you to send XML stanzas.
     * @method _converse.api.send
     * @param {Element|Strophe.Builder} stanza
     * @return {void}
     * @example
     * const msg = converse.env.$msg({
     *     'from': 'juliet@example.com/balcony',
     *     'to': 'romeo@example.net',
     *     'type':'chat'
     * });
     * _converse.api.send(msg);
     */
    function send(stanza: any): void;
    /**
     * Send an IQ stanza
     * @method _converse.api.sendIQ
     * @param {Element|Strophe.Builder} stanza
     * @param {number} [timeout] - The default timeout value is taken from
     *  the `stanza_timeout` configuration setting.
     * @param {boolean} [reject=true] - Whether an error IQ should cause the promise
     *  to be rejected. If `false`, the promise will resolve instead of being rejected.
     * @returns {Promise} A promise which resolves (or potentially rejected) once we
     *  receive a `result` or `error` stanza or once a timeout is reached.
     *  If the IQ stanza being sent is of type `result` or `error`, there's
     *  nothing to wait for, so an already resolved promise is returned.
     */
    function sendIQ(stanza: any, timeout?: number, reject?: boolean): Promise<any>;
}
export default _default;
export namespace Strophe {
    type Builder = any;
}
//# sourceMappingURL=send.d.ts.map