import { Config } from "../utils"; /** * getImgResponse retrieves an image, optimizes it, and returns a HTTP response * it returns failure responses for 404, 401 and similar cases * but may also throw errors if the image is not found or cannot be processed * or if the config options are invalid. * @param {Request} request - the incoming HTTP request, using the Web Fetch API's Request object * @param {Config} config - the config object * @returns {Promise} - a promise resolving to a Response object */ export declare function getImgResponse(request: Request, config?: Config): Promise;