///
import cors from '@koa/cors';
import { Application, CorsConfig, HttpContext, Middleware, NextHandler } from '@supercharge/contracts';
export declare class HandleCorsMiddleware implements Middleware {
/**
* Stores the app instance.
*/
protected readonly app: Application;
/**
* The CORS handler for incoming requests.
*/
private readonly handleCors;
/**
* Create a new middleware instance.
*/
constructor(app: Application);
/**
* Returns the options determining how to serve assets.
*
* @returns {CorsConfig}
*/
protected createConfig(): cors.Options;
/**
* Returns the CORS config object.
*
* @returns {CorsConfig}
*/
config(): CorsConfig;
/**
* Handle the incoming request.
*
* @param ctx HttpContext
* @param next NextHandler
*/
handle(ctx: HttpContext, next: NextHandler): Promise;
}