/** * @name whenIframeReady * @namespace js.dom.when * @type Function * @platform js * @status stable * @async * * Wait until the passed iframe is ready to be used * * @param {HTMLIframeElement} $iframe The iframe to wait on * @return {Promise} A promise that will be resolved when an interaction has been made * * @snippet __whenIframeReady($1) * __whenIframeReady($1).then(\$elm => { * $2 * }); * * @todo tests * * @example js * import { __whenIframeReady } from '@lotsof/sugar/dom' * __whenIframeReady($myCoolIframe).then($iframe => { * // do something... * }); * * @since 1.0.0 * @author Olivier Bossel (https://lotsof.dev) */ export default function __whenIframeReady($iframe: HTMLIFrameElement): Promise;