import * as koa from 'koa'; import { Config } from './config'; import { ChowError, RequestValidationError, ResponseValidationError } from 'oas3-chow-chow'; export { ChowError, RequestValidationError, ResponseValidationError }; export type Oas = { request: { query?: any; header?: any; params?: any; }; operationId?: any; }; declare module 'koa' { interface Context { oas?: Oas; } } export declare function oas(cfg: Partial): Promise;