import type { EmptyObject } from 'react-bindings'; import type { TypeOrPromisedType } from '../resolveable/types'; import type { UseWaitableArgs } from '../use-waitable/types/args'; import type { WrappedResult } from '../waitable/types/wrapped-result'; /** * A waitable that gets its state from the result of the specified function. * * Results must be wrapped and marked as ok (success) or not (error). * * This is likely a more natural form to work with in cases that don't require the ability to call `setSuccess` or `setFailure` more than * once during a single run. */ export declare const useWaitableFunction: (primaryFunc: (args: { wasReset: () => boolean; }) => TypeOrPromisedType>, options: UseWaitableArgs) => import("../exports.js").Waitable & ExtraFieldsT; //# sourceMappingURL=use-waitable-function.d.ts.map