/// import * as http from 'http'; import { Context as KoaContext } from 'koa'; export declare type Callback = (err?: Error | null | undefined, value?: T) => void; export declare type MiddlewareFunction = (ctx: KoaContext, next?: Callback) => Promise; export interface Dictionary { [key: string]: T; } /** * A dictionary of parameters, where keys are the source of the parameters. */ export interface ParametersByLocation { /** Parameters that came from the HTTP query string. */ query: T; /** Parameters that came from an HTTP header. */ header: T; /** Parameters that were parsed from the "server" in the OAS3 document. */ server: T; /** Parameters that were parsed from the "path. */ path: T; /** Parameters that came from cookies. */ cookie: T; } /** * A collection of parameters. */ export interface ParametersMap { [key: string]: T; } export interface HttpIncomingMessage extends http.IncomingMessage { body?: any; }