//#region src/Island/useIsland.d.ts /** * Returns whether the current component is rendered inside an {@link Island}. * * Entry adapters use this signal to hydrate nested entries only when they are * mounted as part of an island hydration boundary. * The local React Island provider is used first; when it is absent, the hook * reads `ISLAND_CONTEXT_KEY` from `GlobalContext`, matching the portal helpers. * * @returns `true` inside an `Island`, otherwise `false`. * * @example * ```tsx * function DebugIslandState() { * const isIsland = useIsland(); * * return {isIsland ? 'island' : 'page'}; * } * ``` */ declare function useIsland(): boolean; //#endregion export { useIsland }; //# sourceMappingURL=useIsland.d.ts.map