export declare function useAwait(promise: Promise | T): { value: T | undefined; loading: boolean; error: Error | undefined; };