import { createContext, useContext } from 'react';
export const QueryBuilderContext = createContext(null);
export function useQueryBuilderContext() {
    const context = useContext(QueryBuilderContext);
    if (!context) {
        throw new Error('useQueryBuilderContext must be used within QueryBuilderProvider');
    }
    return context;
}
//# sourceMappingURL=context.js.map