import { METHOD, IRouteFactory, IPipeProcess, PipeErrorHandler, MapLike, IRouteUrlTpl_DEPERACTED, IRouteUrlPattern, IRouteCheckSchema } from "../metadata"; declare type UrlPatternV1 = string | IRouteUrlTpl_DEPERACTED; declare type UrlPatternv2 = string | IRouteUrlPattern; declare type UrlPattern = UrlPatternV1 | UrlPatternv2; export interface CustomRouteOptions { /** 路由方法,默认值:`'GET'` */ method?: METHOD; /** 路由path部分的填充值,默认值:`undefined` */ path?: string[]; /** @deperacted [ replace with `patterns` ] url模板,用来自定义生成的url,默认值:`[]` */ tpls?: (string | IRouteUrlTpl_DEPERACTED)[]; /** url模板,用来自定义生成的url,默认值:`[]` */ patterns?: (string | IRouteUrlPattern)[]; /** 路由名字,默认值:`undefined` */ name?: string; /** 覆盖parent路由集的url生成模版,默认:`false` */ forceRouter?: boolean; /** 扩展结构,默认:`{}` */ extensions?: any; } export interface CustomPipeOptions extends Partial { /** 扩展结构,默认:`{}` */ extensions?: any; } export interface CustomUtilOptions extends Partial { /** 扩展结构,默认:`{}` */ extensions?: any; } interface IRouteUtilConfig { /** 前置执行的路由,某个新版本加入的功能 */ preHandler: string[]; /** 支持使用schema对请求内容检查,某个新版本加入的功能 */ schema: Partial; } interface IPipeBaseConfig { /** 是否重载覆盖Router级别的pipe配置,默认:`false` */ override: boolean; /** 附加pipe的方式,默认:`'push'` */ zIndex: "unshift" | "push"; /** 附加的pipes,默认:`[]` */ rules: IPipeProcess[]; /** pipes的错误处理捕捉函数,默认:`undefined` */ handler: PipeErrorHandler; } /** * ## 自定义的路由 * @description * @author Big Mogician * @export * @param {CustomRouteOptions} options * @returns {IRouteFactory} * @exports */ export declare function CustomRouteFactory(options: CustomRouteOptions): IRouteFactory; /** * ## 自定义的额外功能 * @description * @author Big Mogician * @export * @param {CustomUtilOptions} options * @returns {IRouteFactory} * @exports */ export declare function CustomUtilFactory(options: CustomUtilOptions): IRouteFactory; /** * ## 自定义的管道 * @description * @author Big Mogician * @export * @param {CustomPipeOptions} options * @returns {IRouteFactory} * @exports */ export declare function CustomPipeFactory(options: CustomPipeOptions): IRouteFactory; export declare function decidePatternVersion(each: UrlPattern): [string, MapLike]; export {};