import { r as CollectionStoreItem, t as CollectionStore } from "../collection-store-CS0ODeba.js";
//#region src/collection/collection-context.d.ts
/**
 * Returns the collection store from the nearest collection container.
 * @example
 * function CollectionItem() {
 *   const store = useCollectionContext();
 *
 *   if (!store) {
 *     throw new Error("CollectionItem must be wrapped in CollectionProvider");
 *   }
 *
 *   // Use the store...
 * }
 */
declare const useCollectionContext: () => CollectionStore<CollectionStoreItem> | undefined;
declare const useCollectionScopedContext: (onlyScoped?: boolean) => CollectionStore<CollectionStoreItem> | undefined;
declare const useCollectionProviderContext: () => CollectionStore<CollectionStoreItem> | undefined;
declare const CollectionContextProvider: (props: import("react").ProviderProps<CollectionStore<CollectionStoreItem> | undefined>) => import("react").JSX.Element;
declare const CollectionScopedContextProvider: (props: import("react").ProviderProps<CollectionStore<CollectionStoreItem> | undefined>) => import("react").JSX.Element;
//#endregion
export { CollectionContextProvider, CollectionScopedContextProvider, useCollectionContext, useCollectionProviderContext, useCollectionScopedContext };
//# sourceMappingURL=collection-context.d.ts.map