import { Context } from "./context"; export declare type Middleware, ParamsType = any, ContextDataType = any> = (ctx: Context, next: MiddlewareNextFunction) => Promise; /** A synchronous middleware only makes sense for a final handler */ export declare type SyncMiddleware, ParamsType = any, ContextDataType = any> = (ctx: Context, next: MiddlewareNextFunction) => any; export declare type MiddlewareNextFunction = () => (Promise | any);