import { Data } from '../atoms'; import type { AtomLikeOfOutput } from '../atoms'; /** * switch Tache will emits a "to" value when "from" value comes. * * If there is not "to" value to emit when "from" value comes, * it will emit a TERMINATOR which will stop the stream. * * @see {@link dynamicSwitchT}, {@link staticSwitchT}, {@link promiseSwitchT} */ export declare const switchT: (to: T | AtomLikeOfOutput, from: AtomLikeOfOutput) => Data; interface ISwitchT_ { (to: AtomLikeOfOutput | T, from: AtomLikeOfOutput): Data; (to: AtomLikeOfOutput | T): (from: AtomLikeOfOutput) => Data; } /** * @see {@link switchT} */ export declare const switchT_: ISwitchT_; /** * @see {@link switchT} */ export declare const dynamicSwitchT: (to: AtomLikeOfOutput, from: AtomLikeOfOutput) => Data; interface IDynamicSwitchT_ { (to: AtomLikeOfOutput, from: AtomLikeOfOutput): Data; (to: AtomLikeOfOutput): (from: AtomLikeOfOutput) => Data; } /** * @see {@link dynamicSwitchT} */ export declare const dynamicSwitchT_: IDynamicSwitchT_; /** * @see {@link switchT} */ export declare const staticSwitchT: (to: T, from: AtomLikeOfOutput) => Data; interface IStaticSwitchT_ { (to: T, from: AtomLikeOfOutput): Data; (to: T): (from: AtomLikeOfOutput) => Data; } /** * @see {@link staticSwitchT} */ export declare const staticSwitchT_: IStaticSwitchT_; /** * promiseSwitch Tache will emits a "to" value when "from" value comes. * * If there is no "to" value to emit when "from" value comes, * it will make a promise that to emit "to" value when it comes later. * * @see {@link switchT} */ export declare const promiseSwitchT: (to: AtomLikeOfOutput, from: AtomLikeOfOutput) => Data; interface IPromiseSwitchT_ { (to: AtomLikeOfOutput, from: AtomLikeOfOutput): Data; (to: AtomLikeOfOutput): (from: AtomLikeOfOutput) => Data; } /** * @see {@link promiseSwitchT} */ export declare const promiseSwitchT_: IPromiseSwitchT_; export {}; //# sourceMappingURL=switch.taches.d.ts.map