import { createContext, useContext } from "react";
//#region ../core/src/store-api-context.ts
const StoreApiContext = createContext(null);
const StoreApiProvider = StoreApiContext.Provider;
function useStoreApi() {
	const api = useContext(StoreApiContext);
	if (!api) throw new Error("useStoreApi must be used within a StoreApiProvider");
	return api;
}
//#endregion
export { useStoreApi as n, StoreApiProvider as t };

//# sourceMappingURL=store-api-context-C1lXT_3d.mjs.map