UNPKG

@islands/hydration

Version:

Hydration utilities for îles

10 lines (9 loc) 924 B
import { a as FrameworkFn, i as Framework, n as AsyncFrameworkFn, o as Props, r as Component, s as Slots, t as AsyncComponent } from "./types-Dj_s1DfM.js"; //#region hydration.d.ts declare function hydrateNow(framework: FrameworkFn, component: Component, id: string, props: Props, slots: Slots): void; declare function hydrateWhenIdle(framework: AsyncFrameworkFn, component: AsyncComponent, id: string, props: Props, slots: Slots): void; declare function hydrateOnMediaQuery(framework: AsyncFrameworkFn, component: AsyncComponent, id: string, props: Props, slots: Slots): void; declare function hydrateWhenVisible(framework: AsyncFrameworkFn, component: AsyncComponent, id: string, props: Props, slots: Slots): void; declare const onDispose: (id: string, fn: () => void) => any; //#endregion export { type Framework, type Props, type Slots, hydrateNow, hydrateOnMediaQuery, hydrateWhenIdle, hydrateWhenVisible, onDispose };