export type HmrEntrypointRole = 'page' | 'script'; export interface ResolvedHmrEntrypoint { sourcePath: string; /** * Emitted artifact path for disk-based HMR, or the resolved source path for * dev-transform entrypoints where modules are served on demand. */ outputPath: string; outputUrl: string; role: HmrEntrypointRole; } export declare function isRegisteredDevTransformEntrypoint(registered: ReadonlyMap, filePath: string): boolean; export declare function isRegisteredScriptEntrypoint(registered: ReadonlyMap, filePath: string): boolean; export declare function encodeHmrDynamicSegments(filepath: string): string; export declare function decodeHmrDynamicSegments(filepath: string): string; /** * @remarks * Runtime rebuilds must delete the previous artifact so the bundler does not * reuse a stale bundle when the source file changed. */ export declare function removeStaleHmrEntrypointOutput(outputPath: string, scope: string): void;