export type HmrModuleHandlers = Record Promise | void>; export type ApplyModuleUpdateContext = { getHandlers: () => HmrModuleHandlers | undefined; getActivePageModule?: () => string | undefined; reloadCurrentPage: (request: { clearCache: boolean; moduleUrl: string; }) => Promise; importModule: (url: string) => Promise; waitForSettled: () => Promise; }; export declare function resolveActiveModuleUrl(handlers: HmrModuleHandlers, pageModule?: string): string | undefined; export declare function applyModuleUpdate(path: string, context: ApplyModuleUpdateContext, timestamp?: number): Promise;