///
import cors from '@koa/cors';
import { Middleware } from './base.js';
import { Application, CorsConfig, HttpContext, NextHandler } from '@supercharge/contracts';
export declare class HandleCorsMiddleware extends Middleware {
/**
* 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.
*/
protected createConfig(): cors.Options;
/**
* Returns the CORS config object.
*/
config(): CorsConfig;
/**
* Handle the incoming request.
*/
handle(ctx: HttpContext, next: NextHandler): Promise;
}