import { Answer, IUpdate } from '..'; export declare type NextFunction = () => any | Promise; export declare type MiddlewareFunction = (update: IUpdate, answer: Answer, params: any, next?: NextFunction, fail?: NextFunction) => any | Promise;