declare type Route = { path: string; component: string; exact?: boolean; title?: string; }; /** * 将路由写入路由文件 * @param {*} newRoute 新的路由配置: { path, component, ... } * @param {*} configPath 配置路径 * @param {*} absSrcPath 代码路径 */ export declare function writeNewRoute(newRoute: Route, configPath: string, absSrcPath: string): void; /** * 获取目标 * @param {*} configPath * @param {*} newRoute */ export declare function getNewRouteCode(configPath: string, newRoute: Route, absSrcPath: string): any; /** * 写入节点 * @param {*} node 找到的节点 * @param {*} newRoute 新的路由配置 */ export declare function writeRouteNode(targetNode: any, newRoute: Route, currentPath?: string): any; export {};