import type { Binding } from 'react-bindings'; import type { TypeOrPromisedType } from '../../resolveable/types'; import type { UseWaitableDefaultValueProducer } from '../types/args'; /** * Updates the error or value bindings for a waitable given a default value producing function (or undefined). * * If no default value function is provided, this function: * * - sets error and value to undefined and stops * * If a default value function is provided, this function: * * - set error to undefined * - runs the default value producer function * - if the waitable hasn't otherwise been updated before the default result was produced, the waitable's value is updated with the result * * Errors in default value producer functions are ignored. */ export declare const updateWaitableBindingsWithDefaultValueProducer: ({ areValuesEqual, defaultValue, error, value }: { areValuesEqual: (a: any, b: any) => boolean; defaultValue: UseWaitableDefaultValueProducer | undefined; error: Binding; value: Binding; }) => TypeOrPromisedType; //# sourceMappingURL=update-waitable-bindings-with-default-value-producer.d.ts.map