/** * Hydrate all islands with the given handlers */ export declare function hydrateIslands(handlers: IslandHandlers): void; /** * Add preload links for island scripts */ export declare function preloadIslandHandlers(handlers: IslandHandlers): void; /** * Initialize island hydration with the given handlers */ export declare function initIslands(handlers: IslandHandlers, config?: HydrationConfig): void; /** * Client-side functionality for bun-plugin-stx * This file is meant to be used in the browser */ // Version info export declare const version: '1.0.0'; /** * Configuration for island hydration */ export declare interface HydrationConfig { autoStart?: boolean preload?: 'none' | 'eager' | 'lazy' } /** * Island handler registry */ export type IslandHandlers = Record Promise>; /** * Island hydration function type */ export type HydrationFunction = (_element: HTMLElement, _props: any) => void | Promise;