import { jsx as _jsx } from "react/jsx-runtime";
import React from 'react';
const noop = async () => { };
const defaultValue = {
    status: 'ready',
    refreshProviders: noop,
    isRefreshing: false,
    hasFactory: false,
    supportsRefresh: false
};
const ProviderRegistryContext = React.createContext(defaultValue);
export const ProviderRegistryProvider = ({ value, children }) => (_jsx(ProviderRegistryContext.Provider, { value: value, children: children }));
export const useProviderRegistry = () => {
    return React.useContext(ProviderRegistryContext);
};
