import { A as AsyncState } from '../types-5EvFF6wb.js'; import 'keyweaver'; import 'react'; /** * @returns a promise that resolves with the current value of the given {@link state}. * If the state is not yet loaded, the promise waits until a value is available. * @example * ```js * getPromise(asyncState).then((value) => { * console.log('Loaded value:', value); * }).catch((error) => { * console.error('Failed to load:', error); * }); * ``` */ declare const getPromise: (state: AsyncState) => Promise; export { getPromise as default };