import type { RequestConfig, Middleware, NextMiddleware, IAbortablePromise } from '../../types/http'; /** * 中间件组合函数。 * * @template T 中间件返回值类型。 * @param middlewares 中间件列表。 * @returns 中间件执行器函数,一般在最里层构造好参数后传入参数和最里层的中间件函数,按照koa洋葱圈模型执行中间件函数。 * @see https://wjrsbu.smartapps.cn/zhihu/article?id=141890366 */ declare function compose(middlewares: Middleware[]): (options: RequestConfig, next: NextMiddleware) => IAbortablePromise; export default compose;