interface PromiseFactory { (): Promise; } /** * Accepts a function that returns a Promise. * Returns `undefined` or the settled value of the Promise. * If the provided function does not handle Promise rejection, it will be lost. */ export declare function usePromise(factory: PromiseFactory, deps?: any[]): { value: T | undefined; loading: boolean; }; export {}; //# sourceMappingURL=PromiseHook.d.ts.map