/**
 * React suspense compatible wrapper for a loading value
 *
 * @export
 * @interface Suspender
 * @template T
 */
export interface Suspender<T> {
    /**
     * Retrieves either the loaded value or triggers suspense if its not yet available
     *
     * @returns {T}
     */
    read(): T;
}
/**
 * Creates a react suspense compatible wrapper for a loading value
 *
 * Call read to either get the value, once its loaded, or to trigger a suspense boundary in case its not yet available.
 *
 * @template T
 * @param {Promise<T>} promise
 * @returns {Suspender<T>}
 */
export declare const createSuspender: <T>(promise: Promise<T>) => Suspender<T>;
