import type { Waitable } from './waitable'; /** Infers the success type of the waitable */ export type InferWaitableSuccessType = T extends Waitable ? Exclude : never; /** Infers the failure type of the waitable */ export type InferWaitableFailureType = T extends Waitable ? FailureT : never;