import { IRoute } from '../types'; export declare function addParentRoute(opts: { id?: string; addToAll?: boolean; target: IRoute; routes: Record; test?: Function; }): void; export declare function getApiRoutes(opts: { api: any; }): Promise; export declare function getRoutes(opts: { api: any; }): Promise>; export declare function getRouteComponents(opts: { routes: Record; prefix: string; api: any; }): Promise; /** * * transform component into webpack chunkName * @export * @param {string} component component path * @param {string} [cwd] current root path * @return {*} {string} */ export declare function componentToChunkName(component: string, cwd?: string): string; export declare function getModuleExports(opts: { file: string; }): Promise;