export declare type TMiddleware = (ctx: T, next: () => Promise) => T;