export type NextAsync = () => Promise; export type ComposeAsyncCallback = (ctx: C, next: NextAsync) => Promise; export declare function composeAsync>(middleware: F[]): (context: C, next: () => Promise) => Promise;