import { Key, SuspensePromiseOptions } from './types.cjs'; type Sync = (...args: unknown[]) => unknown; /** * @experimental This is experimental feature. */ declare class PromiseCache { private cache; private syncsMap; reset: (promiseKey?: Key) => void; clearError: (promiseKey?: Key) => void; suspend: ({ promiseKey, promiseFn, }: SuspensePromiseOptions) => TData; getData: (promiseKey: Key) => unknown; getError: (promiseKey: Key) => unknown; subscribe(promiseKey: Key, syncSubscriber: Sync): { unsubscribe: () => void; }; unsubscribe(promiseKey: Key, syncSubscriber: Sync): void; private syncSubscribers; } export { PromiseCache };