import Emitter from '../Emitter.js'; import SafeEmitter from '../SafeEmitter.js'; /** The value an emitter is bound with. */ declare type Unpack = E extends SafeEmitter ? T : void; /** * Merge multiple emitters into one. * * Always returns an Emitter even if only `SafeEmitter`s were given. * In the case a given emitter is deactivated the returned emitter will * deactivate as well with the `emitter` field containing the name of * the offending emitter. * Cancellations of a given emitter do not stop the returned emitter. */ export default function ; }>(map: Emitters): Emitter<{ [K in keyof Emitters]: Pick<{ name: K; value: Unpack; }, Exclude<"value", Unpack extends void ? "value" : never> | Exclude<"name", Unpack extends void ? "value" : never>>; }[keyof Emitters]>; export {};