function isCollection(value) {
  return typeof value === `object` && value !== null && typeof value.subscribeChanges === `function` && typeof value.startSyncImmediate === `function` && typeof value.id === `string`;
}
function isSingleResultCollection(collection) {
  return collection.config?.singleResult === true;
}
function getLiveQueryStatusFlags(status) {
  return {
    isLoading: status === `loading`,
    isReady: status === `ready`,
    isIdle: status === `idle`,
    isError: status === `error`,
    isCleanedUp: status === `cleaned-up`
  };
}
export {
  getLiveQueryStatusFlags,
  isCollection,
  isSingleResultCollection
};
//# sourceMappingURL=live-query-adapter.js.map
