UNPKG

rsbuild-plugin-react-router

Version:
17 lines (16 loc) 1.04 kB
import type { Babel, ParseResult } from './babel.js'; export declare function validateDestructuredExports(id: Babel.ArrayPattern | Babel.ObjectPattern, exportsToRemove: string[]): void; export declare function invalidDestructureError(name: string): Error; export declare function toFunctionExpression(decl: Babel.FunctionDeclaration): any; export declare function combineURLs(baseURL: string, relativeURL: string): string; export declare function stripFileExtension(file: string): string; export declare function createRouteId(file: string): string; /** * Find a file with any of the supported JavaScript extensions * @param basePath - The base path without extension * @returns The file path with extension if found, or a default path */ export declare function findEntryFile(basePath: string): string; export declare function generateWithProps(): string; export declare const removeExports: (ast: ParseResult<Babel.File>, exportsToRemove: string[]) => void; export declare const transformRoute: (ast: ParseResult<Babel.File>) => void;