UNPKG

rsbuild-plugin-react-router

Version:
7 lines (6 loc) 508 B
import { type ParseResult } from 'yuku-parser'; import { type AnyNode } from './route-ast.js'; export declare function validateDestructuredExports(id: AnyNode, exportsToRemove: readonly string[]): void; export declare function invalidDestructureError(name: string): Error; export declare const removeExports: (ast: ParseResult | AnyNode, exportsToRemove: readonly string[], exportsToRemoveSet?: ReadonlySet<string>) => boolean; export declare const removeUnusedImports: (ast: ParseResult | AnyNode) => void;