/** * Draws the given html image nto a canvas. * @method imageToCanvas * @example * ``` javascript * // * bbn.fn.imageToCanvas(''); * ``` * @global * @memberof bbn.fn * @param {HTMLElement} img * @returns {HTMLCanvasElement} */ export default function imageToCanvas(img: any): HTMLCanvasElement;