/** * Get the dimensions of an image from a URL. * @param {string} url The URL of the image. It can be a local file (blob url) or a remote file. * @param {{maxWidth?: number, maxHeight?: number}} opts Options for the image size. * @param {number} opts.maxWidth The maximum width of the image. * @param {number} opts.maxHeight The maximum height of the image. * @returns {Promise<{width: number, height: number, naturalWidth: number, naturalHeight: number}>} The dimensions of the image. */ export declare function imageSize(url: string, opts?: { maxWidth?: number; maxHeight?: number; }): Promise<{ width: number; height: number; naturalWidth: number; naturalHeight: number; }>;