import { Observable } from "../Observable"; import { Property } from "../Property"; /** * Creates a Property that indicates whether observable is awaiting the other observable, * i.e. has produced a value after the latest value from the other. This is handy for * keeping track whether we are currently awaiting an AJAX response * * @param toWait Observable whose value is waited after each event of `obs` * @param obs Observable who is waiting `toWait` * * @example * * const searchReq = F.map(toRequest, searchTextChange) * const searchRes = F.flatMapLatest(sendRequest, searchReq) * const isRequestPending = F.awaiting(searchRes, searchReq) * * @public */ export declare const awaiting: CurriedAwaiting; interface CurriedAwaiting { (toWait: Observable, obs: Observable): Property; (toWait: Observable): (obs: Observable) => Property; } export {};