type IMiddleware = { name: string; fn: ({ middlewareData, next }: { middlewareData: Record; next: () => void; }) => Promise<{ data: Record; }>; }; /** * asynchronous function composition, whether to call the next function is completely determined by the middleware itself * @param middleware middleware */ export declare function compose(middleware: IMiddleware[]): void; export {};