import { IncomingMessage, ServerResponse } from 'http';
import { Context as KoaContext } from 'koa';
export declare const isKoaApp: (a: any, b: any) => boolean;
export declare const middleware: (ctx: KoaContext, next: (err?: Error | undefined) => Promise<void>, requestHandler: (req: IncomingMessage, res: ServerResponse, next: (err?: Error | undefined) => Promise<any>) => Promise<any>) => Promise<any>;
