import type { RsbuildEntry, Rspack } from '@rsbuild/core'; /** * `entry`: { * main: './src/index.ts', * } * * `cwd`: /projects/lynx-stack/examples/react * `repoRoot`: /projects/lynx-stack * * returns: { * main: ['examples/react/src/index.ts'], * } */ export declare function collectEntryPathMap(entry: RsbuildEntry, cwd: string, repoRoot: string | null): Record; /** * For dynamic import like `import('./Foo.jsx')`, * locate the absolute path to the Foo.jsx file. */ export declare function collectLazyBundleEntryResources(compilation: Rspack.Compilation, cg: Rspack.ChunkGroup): string[]; /** Stable de-dup preserving first-seen order. */ export declare function dedupe(xs: T[]): T[];