import { ObjectValidator, StringObjectValidator } from '../IsObject'; export declare class KoaMiddleware { protected options: any; constructor(options: any); query(rule: StringObjectValidator): (next: any) => IterableIterator>; body(rule: ObjectValidator): (next: any) => IterableIterator>; params(rule: StringObjectValidator): (next: any) => IterableIterator>; checkErrors(validator: any, ctx: any, next: any): IterableIterator; }