import { RxQuery } from 'rxdb'; /** * Second variable in array is a function that can be invoked to cancel the promise. */ export type CancelablePromise = [Promise, () => void]; /** * Makes promise cancelable. * Wraps original promise in an object that exposes said promise * and also exposes a cancel() method for canceling the promise. * Canceling the promise will prevent it from resolving/rejecting once the * the underlying promise resolves/reject. */ export declare const getCancelablePromise: (promise: Promise) => CancelablePromise; export declare const isObject: (val: unknown) => val is Record; export declare const isRxQuery: (val: unknown) => val is RxQuery;