/** * The currently captured Promise state. */ export interface UsePromiseResult { loading: boolean; data: T; error: any; } /** * Hook for introducing a complete local loading state for a promise. * @param promise The callback for the promise to wait for. */ export declare function usePromise(promise: () => Promise): UsePromiseResult;