import { LazyModule, ResolvedDataDependencies } from '../constants.js'; export declare type HydrationType = 'load' | 'visible' | 'idle'; export declare type CssLoadType = 'sync'; export interface Island { id: string; moduleName: string; moduleId: string; hydrateOn: HydrationType; clientOnly: boolean; priority: number; sharedStateID?: string; wrapperModuleId?: string; } export interface IslandWithProps extends Island { props: any; supplementalFieldValues?: Record; resolvedDataDependencies?: ResolvedDataDependencies; } export interface IslandWithPropsAndUrl extends IslandWithProps { url: string; wrapperUrl?: string; } export interface RenderableIsland { rootElement: Element; pageUrl: string; basePath: string; islands: IslandWithPropsAndUrl[]; postHydration: () => void; island: IslandWithPropsAndUrl; WrapperModule?: React.ComponentType<{ children: JSX.Element; }>; index: number; } export declare type LazyIslandModule = LazyModule>; interface CustomEvent extends Event { readonly detail: T; initCustomEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, detailArg: T): void; } declare type SharedStateEventDetails = { id: string; newValue: any; _hsFrom?: string; }; declare type SharedStateActionDetails = { id: string; action: { type: string; }; }; export declare type SharedStateEvent = CustomEvent; export declare type SharedStateAction = CustomEvent; export declare type SharedIslandReducerAction = { type: string; }; export declare type SharedIslandDispatchFunc = (SharedIslandReducerAction: any) => void; export declare type SharedIslandReducerFunc = (SharedIslandState: any, SharedIslandReducerAction: any) => SharedIslandStateValue; export declare type SharedIslandStateValue = { [key: string]: any; }; export declare type SharedIslandStateType = { id: string; state: SharedIslandStateValue; }; export declare const UNSET_SHARED_STATE_ID = "hs-basic-shared-state-unset-id"; export {};