import { WatchedQuery } from '@powersync/common'; /** * The store will dispose this query if it has no subscribers attached to it. * The suspense promise adds a subscriber to the query, but the promise could resolve * before this component is committed. The promise will release it's listener once the query is no longer loading. * This temporary hold is used to ensure that the query is not disposed in the interim. * Creates a subscription for state change which creates a temporary hold on the query */ export declare const useTemporaryHold: (watchedQuery?: WatchedQuery) => void; /** * React suspense relies on a promise that resolves once the initial data has loaded. * This creates a promise which registers a listener on the watched query. * Registering a listener on the watched query will ensure that the query is not disposed * while the component is suspended. */ export declare const createSuspendingPromise: (query: WatchedQuery) => Promise;