import * as Koa from 'koa'; import { HTTPMethod, WSEndpoint, WSModel } from './meta'; import { WebService } from './models/base'; import { Response } from './models/response'; import { WSTransactable } from './params/transactable'; import { HTTPPlugin } from './plugin'; export declare class RequestContext { params: any[]; handlers: WSTransactable[]; } export declare function EndpointHandler(plugin: HTTPPlugin, meta: WSModel, instance: WebService, endpoint: WSEndpoint, method: HTTPMethod, fn: (...args: any[]) => Promise): (ctx: Koa.Context, next: () => Promise) => Promise;