import type { InferBindingGetType, ReadonlyBinding } from 'react-bindings'; import type { InferWaitableSuccessType } from './inference'; import type { Waitable } from './waitable'; import type { WaitableArrayDependencies } from './waitable-dependencies'; /** Infers the value types from waitable and binding arrays */ export type InferRequiredWaitableAndBindingArrayValueTypes = { [KeyT in keyof DependenciesT]: DependenciesT[KeyT] extends Waitable ? InferWaitableSuccessType : DependenciesT[KeyT] extends Waitable | undefined ? InferWaitableSuccessType | undefined : DependenciesT[KeyT] extends ReadonlyBinding ? InferBindingGetType : DependenciesT[KeyT] extends ReadonlyBinding | undefined ? InferBindingGetType | undefined : DependenciesT[KeyT]; }; /** Infers the value types from waitable and binding arrays */ export type InferOptionalWaitableAndBindingArrayValueTypes = { [KeyT in keyof DependenciesT]: DependenciesT[KeyT] extends Waitable | undefined ? InferWaitableSuccessType | undefined : DependenciesT[KeyT] extends ReadonlyBinding ? InferBindingGetType : DependenciesT[KeyT] extends ReadonlyBinding | undefined ? InferBindingGetType | undefined : DependenciesT[KeyT]; }; //# sourceMappingURL=infer-waitable-and-binding-array-value-types.d.ts.map