import type { ResolveMapEntry } from '@ms-cloudpack/common-types'; import type { PartialContext } from '../types/Context.js'; import type { PackageUpdatePayload } from '../types/PackageUpdatePayload.js'; /** * Creates a package update payload for HMR (Hot Module Replacement) updates. * * This function generates updated bundle URLs for all entry points of a package by replacing * the old hash with a new HMR hash that includes a timestamp to prevent ESM module caching issues. * * @param params - Configuration object * @param params.input - Package information including entry, name, version, and hash * @param params.context - Partial context containing session with import map and package import paths * @returns Package update payload with updated entry point URLs, or undefined if no import map exists */ export declare function createPackageUpdatePayload(params: { input: { packageEntry: Pick; hash: string; }; context: PartialContext<'session', 'importMap' | 'packageImportPaths'>; }): PackageUpdatePayload | undefined; //# sourceMappingURL=createPackageUpdatePayload.d.ts.map