/**
 * Copyright 2023 Kapeta Inc.
 * SPDX-License-Identifier: MIT
 */
interface Result<T = any> {
    promise: Promise<T>;
    resolve: (value?: T) => void;
    reject: (err?: any) => void;
}
export declare const usePromise: <T>() => Result<T>;
export {};
