type NativePage = { data: Record; }; declare const pageHmrStateKey: unique symbol; type PageHmrState = { /** True only across the unload/load/show sequence triggered by one native re-registration. */ isReregistering: boolean; /** The Page bound to `this` by ordinary onLoad, retained until ordinary onUnload. */ mountedPage: NativePage | undefined; }; type HmrPageConfig = { data: Record; onUnload?: unknown; onLoad?: unknown; onShow?: unknown; [pageHmrStateKey]?: PageHmrState; }; /** Tracks the mounted native Page and prepares its static config for DevTools re-registration. */ export declare function injectPageHmr(config: HmrPageConfig): HmrPageConfig; export {};