import { type Rolldown } from 'vite'; import type { RuntimeModulesContract } from '../mini-contract.ts'; export declare const miniRuntimeId: string; /** Identifies Rolldown's generated helper module independently of its unstable output filename. */ export declare const rolldownRuntimeId = "\0rolldown/runtime.js"; /** Identifies the virtual binding shared by native files, SystemJS capsules and HMR factories. */ export declare const vptGlobalBindingId = "\0vpt:global-binding"; /** Generates the selected core-js imports loaded by bootstrap from the native polyfill chunk. */ export declare const miniPolyfillsId = "\0vpt:mini-polyfills"; /** External bootstrap dependency emitted only after the bundled graph is finalized. */ export declare const miniTransportId = "\0vpt:mini-transport"; export declare const miniTransportFileName = "common/vpt/transport.js"; /** Resolves the shared Taro facade's target initialization side effect. */ export declare const taroTargetRuntimeId = "\0vpt:taro-target-runtime"; /** Redirects Vite's injected browser preload helper to the bootstrap identity loader. */ export declare const vitePreloadId = "\0vite/preload-helper.js"; /** Forces the native App shell entry to emit at the required root path. */ export declare const appShellFileName = "app.js"; /** Forces Taro's recursive native Component entry to emit at its configured root path. */ export declare const componentShellFileName = "comp.js"; /** Forces Taro's CustomWrapper native shell to emit at its configured root path. */ export declare const customWrapperShellFileName = "custom-wrapper.js"; /** Resolves the configured Page component from its route-qualified capsule importer. */ export declare const pageComponentId = "\0vpt:page-component"; /** Gives every Page shell one private capsule target that can be resolved using its route. */ export declare const pageCapsuleId = "\0vpt:page-capsule"; export type MiniChunk = Rolldown.PreRenderedChunk | Rolldown.RenderedChunk; /** Distinguishes native shells, lifecycle entry capsules, ordinary capsules, and shared native/SystemJS infrastructure. */ export type MiniChunkKind = 'native' | 'entry-capsule' | 'normal-capsule' | 'amphibious'; /** Classifies chunks by their compiler-owned modules; ordinary application chunks are normal capsules. */ export type MiniModuleClassifier = (chunk: MiniChunk) => MiniChunkKind; /** Native hook filter for the physical core-js graph; the generated import-only entry needs no host rewriting. */ export declare const miniPolyfillSourceFilter: RegExp; /** Keeps the global binding and core-js in the pre-bootstrap native chunk, outside the recursive framework group. */ export declare function isMiniPolyfillModule(moduleId: string): boolean; /** Groups framework modules by resolved package roots; Rolldown includes their dependencies. */ export declare function isMiniFrameworkVendorModule(moduleId: string): boolean; /** * The Mini graph separates lifecycle entries from bootstrap/polyfill/runtime infrastructure. A compiler-owned module * identifies its chunk's kind; chunks containing only application or framework modules are normal capsules. * One scan stops at the first known identity: O(M) worst-case time and O(1) extra space, without per-chunk collections. */ export declare function createMiniModuleClassifier(modules: RuntimeModulesContract): MiniModuleClassifier;