//#region src/integrations/hmr-runtime.d.ts /** * A live island mount. `Component` and `dispose` are mutable: a hot swap * replaces both in place, so the `astro:unmount` listener closed over this * record still tears down whatever is currently mounted. */ interface IslandRecord { element: Element; Component: unknown; props: Record; dispose: () => void; } interface ElementsKitHmr { /** Track a mount. Returns an unregister function for unmount. */ register(record: IslandRecord): () => void; /** * Re-mount every island whose component came from a module that just * changed. `false` means nothing on the page matched — the caller falls * back to `import.meta.hot.invalidate()`. */ swap(prev: Record, next: Record): boolean; } declare const _default: ElementsKitHmr; //#endregion export { ElementsKitHmr, IslandRecord, _default as default };