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