"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const ir = require("./query/ir.cjs");
const index$1 = require("./collection/index.cjs");
const SortedMap = require("./SortedMap.cjs");
const transactions = require("./transactions.cjs");
const proxy = require("./proxy.cjs");
const optimisticAction = require("./optimistic-action.cjs");
const localOnly = require("./local-only.cjs");
const localStorage = require("./local-storage.cjs");
const errors = require("./errors.cjs");
const utils = require("./utils.cjs");
const pacedMutations = require("./paced-mutations.cjs");
const virtualProps = require("./virtual-props.cjs");
const baseIndex = require("./indexes/base-index.cjs");
const basicIndex = require("./indexes/basic-index.cjs");
const btreeIndex = require("./indexes/btree-index.cjs");
const reverseIndex = require("./indexes/reverse-index.cjs");
const indexOptimization = require("./utils/index-optimization.cjs");
const indexRegistry = require("./indexes/index-registry.cjs");
const expressionHelpers = require("./query/expression-helpers.cjs");
const effect = require("./query/effect.cjs");
const functions = require("./query/builder/functions.cjs");
const index = require("./query/builder/index.cjs");
const subsetDedupe = require("./query/subset-dedupe.cjs");
const evaluators = require("./query/compiler/evaluators.cjs");
const index$2 = require("./query/compiler/index.cjs");
const liveQueryCollection = require("./query/live-query-collection.cjs");
const debounceStrategy = require("./strategies/debounceStrategy.cjs");
const predicateUtils = require("./query/predicate-utils.cjs");
const queryOnce = require("./query/query-once.cjs");
const queueStrategy = require("./strategies/queueStrategy.cjs");
const throttleStrategy = require("./strategies/throttleStrategy.cjs");
exports.IR = ir;
exports.CollectionImpl = index$1.CollectionImpl;
exports.createCollection = index$1.createCollection;
exports.SortedMap = SortedMap.SortedMap;
exports.createTransaction = transactions.createTransaction;
exports.getActiveTransaction = transactions.getActiveTransaction;
exports.createArrayChangeProxy = proxy.createArrayChangeProxy;
exports.createChangeProxy = proxy.createChangeProxy;
exports.withArrayChangeTracking = proxy.withArrayChangeTracking;
exports.withChangeTracking = proxy.withChangeTracking;
exports.createOptimisticAction = optimisticAction.createOptimisticAction;
exports.localOnlyCollectionOptions = localOnly.localOnlyCollectionOptions;
exports.localStorageCollectionOptions = localStorage.localStorageCollectionOptions;
exports.AggregateFunctionNotInSelectError = errors.AggregateFunctionNotInSelectError;
exports.AggregateNotSupportedError = errors.AggregateNotSupportedError;
exports.CannotCombineEmptyExpressionListError = errors.CannotCombineEmptyExpressionListError;
exports.CollectionConfigurationError = errors.CollectionConfigurationError;
exports.CollectionInErrorStateError = errors.CollectionInErrorStateError;
exports.CollectionInputNotFoundError = errors.CollectionInputNotFoundError;
exports.CollectionIsInErrorStateError = errors.CollectionIsInErrorStateError;
exports.CollectionOperationError = errors.CollectionOperationError;
exports.CollectionRequiresConfigError = errors.CollectionRequiresConfigError;
exports.CollectionRequiresSyncConfigError = errors.CollectionRequiresSyncConfigError;
exports.CollectionStateError = errors.CollectionStateError;
exports.DeleteKeyNotFoundError = errors.DeleteKeyNotFoundError;
exports.DistinctRequiresSelectError = errors.DistinctRequiresSelectError;
exports.DuplicateAliasInSubqueryError = errors.DuplicateAliasInSubqueryError;
exports.DuplicateDbInstanceError = errors.DuplicateDbInstanceError;
exports.DuplicateKeyError = errors.DuplicateKeyError;
exports.DuplicateKeySyncError = errors.DuplicateKeySyncError;
exports.EmptyReferencePathError = errors.EmptyReferencePathError;
exports.FnSelectWithGroupByError = errors.FnSelectWithGroupByError;
exports.GroupByError = errors.GroupByError;
exports.HavingRequiresGroupByError = errors.HavingRequiresGroupByError;
exports.InvalidCollectionStatusTransitionError = errors.InvalidCollectionStatusTransitionError;
exports.InvalidJoinCondition = errors.InvalidJoinCondition;
exports.InvalidJoinConditionLeftSourceError = errors.InvalidJoinConditionLeftSourceError;
exports.InvalidJoinConditionRightSourceError = errors.InvalidJoinConditionRightSourceError;
exports.InvalidJoinConditionSameSourceError = errors.InvalidJoinConditionSameSourceError;
exports.InvalidJoinConditionSourceMismatchError = errors.InvalidJoinConditionSourceMismatchError;
exports.InvalidKeyError = errors.InvalidKeyError;
exports.InvalidSchemaError = errors.InvalidSchemaError;
exports.InvalidSourceError = errors.InvalidSourceError;
exports.InvalidSourceTypeError = errors.InvalidSourceTypeError;
exports.InvalidStorageDataFormatError = errors.InvalidStorageDataFormatError;
exports.InvalidStorageObjectFormatError = errors.InvalidStorageObjectFormatError;
exports.InvalidWhereExpressionError = errors.InvalidWhereExpressionError;
exports.JoinCollectionNotFoundError = errors.JoinCollectionNotFoundError;
exports.JoinConditionMustBeEqualityError = errors.JoinConditionMustBeEqualityError;
exports.JoinError = errors.JoinError;
exports.KeyUpdateNotAllowedError = errors.KeyUpdateNotAllowedError;
exports.LimitOffsetRequireOrderByError = errors.LimitOffsetRequireOrderByError;
exports.LocalStorageCollectionError = errors.LocalStorageCollectionError;
exports.MissingAliasInputsError = errors.MissingAliasInputsError;
exports.MissingDeleteHandlerError = errors.MissingDeleteHandlerError;
exports.MissingHandlerError = errors.MissingHandlerError;
exports.MissingInsertHandlerError = errors.MissingInsertHandlerError;
exports.MissingMutationFunctionError = errors.MissingMutationFunctionError;
exports.MissingUpdateArgumentError = errors.MissingUpdateArgumentError;
exports.MissingUpdateHandlerError = errors.MissingUpdateHandlerError;
exports.NegativeActiveSubscribersError = errors.NegativeActiveSubscribersError;
exports.NoKeysPassedToDeleteError = errors.NoKeysPassedToDeleteError;
exports.NoKeysPassedToUpdateError = errors.NoKeysPassedToUpdateError;
exports.NoPendingSyncTransactionCommitError = errors.NoPendingSyncTransactionCommitError;
exports.NoPendingSyncTransactionWriteError = errors.NoPendingSyncTransactionWriteError;
exports.NonAggregateExpressionNotInGroupByError = errors.NonAggregateExpressionNotInGroupByError;
exports.NonRetriableError = errors.NonRetriableError;
exports.OnMutateMustBeSynchronousError = errors.OnMutateMustBeSynchronousError;
exports.OnlyOneSourceAllowedError = errors.OnlyOneSourceAllowedError;
exports.QueryBuilderError = errors.QueryBuilderError;
exports.QueryCompilationError = errors.QueryCompilationError;
exports.QueryMustHaveFromClauseError = errors.QueryMustHaveFromClauseError;
exports.QueryOptimizerError = errors.QueryOptimizerError;
exports.SchemaMustBeSynchronousError = errors.SchemaMustBeSynchronousError;
exports.SchemaValidationError = errors.SchemaValidationError;
exports.SerializationError = errors.SerializationError;
exports.SetWindowRequiresOrderByError = errors.SetWindowRequiresOrderByError;
exports.StorageError = errors.StorageError;
exports.StorageKeyRequiredError = errors.StorageKeyRequiredError;
exports.SubQueryMustHaveFromClauseError = errors.SubQueryMustHaveFromClauseError;
exports.SubscriptionNotFoundError = errors.SubscriptionNotFoundError;
exports.SyncCleanupError = errors.SyncCleanupError;
exports.SyncTransactionAlreadyCommittedError = errors.SyncTransactionAlreadyCommittedError;
exports.SyncTransactionAlreadyCommittedWriteError = errors.SyncTransactionAlreadyCommittedWriteError;
exports.TanStackDBError = errors.TanStackDBError;
exports.TransactionAlreadyCompletedRollbackError = errors.TransactionAlreadyCompletedRollbackError;
exports.TransactionError = errors.TransactionError;
exports.TransactionNotPendingCommitError = errors.TransactionNotPendingCommitError;
exports.TransactionNotPendingMutateError = errors.TransactionNotPendingMutateError;
exports.UndefinedKeyError = errors.UndefinedKeyError;
exports.UnknownExpressionTypeError = errors.UnknownExpressionTypeError;
exports.UnknownFunctionError = errors.UnknownFunctionError;
exports.UnknownHavingExpressionTypeError = errors.UnknownHavingExpressionTypeError;
exports.UnsupportedAggregateFunctionError = errors.UnsupportedAggregateFunctionError;
exports.UnsupportedFromTypeError = errors.UnsupportedFromTypeError;
exports.UnsupportedJoinSourceTypeError = errors.UnsupportedJoinSourceTypeError;
exports.UnsupportedJoinTypeError = errors.UnsupportedJoinTypeError;
exports.UnsupportedRootScalarSelectError = errors.UnsupportedRootScalarSelectError;
exports.UpdateKeyNotFoundError = errors.UpdateKeyNotFoundError;
exports.WhereClauseConversionError = errors.WhereClauseConversionError;
exports.deepEquals = utils.deepEquals;
exports.createPacedMutations = pacedMutations.createPacedMutations;
exports.hasVirtualProps = virtualProps.hasVirtualProps;
exports.BaseIndex = baseIndex.BaseIndex;
exports.BasicIndex = basicIndex.BasicIndex;
exports.BTreeIndex = btreeIndex.BTreeIndex;
exports.ReverseIndex = reverseIndex.ReverseIndex;
exports.findIndexForField = indexOptimization.findIndexForField;
exports.optimizeExpressionWithIndexes = indexOptimization.optimizeExpressionWithIndexes;
exports.clearQueryPatterns = indexRegistry.clearQueryPatterns;
exports.configureIndexDevMode = indexRegistry.configureIndexDevMode;
exports.getIndexDevModeConfig = indexRegistry.getIndexDevModeConfig;
exports.getQueryPatterns = indexRegistry.getQueryPatterns;
exports.isDevModeEnabled = indexRegistry.isDevModeEnabled;
exports.trackQuery = indexRegistry.trackQuery;
exports.extractFieldPath = expressionHelpers.extractFieldPath;
exports.extractSimpleComparisons = expressionHelpers.extractSimpleComparisons;
exports.extractValue = expressionHelpers.extractValue;
exports.parseLoadSubsetOptions = expressionHelpers.parseLoadSubsetOptions;
exports.parseOrderByExpression = expressionHelpers.parseOrderByExpression;
exports.parseWhereExpression = expressionHelpers.parseWhereExpression;
exports.walkExpression = expressionHelpers.walkExpression;
exports.createEffect = effect.createEffect;
exports.add = functions.add;
exports.and = functions.and;
exports.avg = functions.avg;
exports.coalesce = functions.coalesce;
exports.concat = functions.concat;
exports.count = functions.count;
exports.eq = functions.eq;
exports.gt = functions.gt;
exports.gte = functions.gte;
exports.ilike = functions.ilike;
exports.inArray = functions.inArray;
exports.isNull = functions.isNull;
exports.isUndefined = functions.isUndefined;
exports.length = functions.length;
exports.like = functions.like;
exports.lower = functions.lower;
exports.lt = functions.lt;
exports.lte = functions.lte;
exports.max = functions.max;
exports.min = functions.min;
exports.not = functions.not;
exports.operators = functions.operators;
exports.or = functions.or;
exports.sum = functions.sum;
exports.toArray = functions.toArray;
exports.upper = functions.upper;
exports.BaseQueryBuilder = index.BaseQueryBuilder;
exports.Query = index.Query;
exports.DeduplicatedLoadSubset = subsetDedupe.DeduplicatedLoadSubset;
exports.compileExpression = evaluators.compileExpression;
exports.compileSingleRowExpression = evaluators.compileSingleRowExpression;
exports.toBooleanPredicate = evaluators.toBooleanPredicate;
exports.compileQuery = index$2.compileQuery;
exports.createLiveQueryCollection = liveQueryCollection.createLiveQueryCollection;
exports.liveQueryCollectionOptions = liveQueryCollection.liveQueryCollectionOptions;
exports.debounceStrategy = debounceStrategy.debounceStrategy;
exports.isLimitSubset = predicateUtils.isLimitSubset;
exports.isOffsetLimitSubset = predicateUtils.isOffsetLimitSubset;
exports.isOrderBySubset = predicateUtils.isOrderBySubset;
exports.isPredicateSubset = predicateUtils.isPredicateSubset;
exports.isWhereSubset = predicateUtils.isWhereSubset;
exports.minusWherePredicates = predicateUtils.minusWherePredicates;
exports.unionWherePredicates = predicateUtils.unionWherePredicates;
exports.queryOnce = queryOnce.queryOnce;
exports.queueStrategy = queueStrategy.queueStrategy;
exports.throttleStrategy = throttleStrategy.throttleStrategy;
//# sourceMappingURL=index.cjs.map
