import { type StateCreator, type StoreApi } from 'zustand/vanilla'; export type IslandStoreState = object; type IslandStoreSnapshot = Record; export type IslandStateSnapshot = Record; type AnyIslandStore = StoreApi; type IslandStoreInstance = { applyExternalSnapshot: (snapshot: IslandStoreSnapshot) => void; store: AnyIslandStore; }; export declare const ABSOLUTE_ISLAND_STATE = "__ABS_ISLAND_STATE__"; export declare const ABSOLUTE_ISLAND_STORES = "__ABS_ISLAND_STORES__"; declare global { var __ABS_ISLAND_STATE__: IslandStateSnapshot | undefined; var __ABS_ISLAND_STORES__: Map> | undefined; } export declare const createIslandStore: (storeId: string, initialState: TState, createState: StateCreator) => StoreApi & TActions>; export declare const getIslandStoreServerSnapshot: (store: StoreApi, selector: (state: TState) => TSelected) => TSelected; export declare const initializeIslandStores: (state: IslandStateSnapshot) => void; export declare const readIslandStore: (store: StoreApi, selector: (state: TState) => TSelected) => TSelected; export declare const resetIslandStoreForTesting: () => void; export declare const subscribeIslandStore: (store: StoreApi, selector: (state: TState) => TSelected, listener: (value: TSelected) => void) => () => void; export {};