import type TypedEventEmitter from 'typed-emitter'; /** * Using Three Valued Logic for ON/OFF State * https://github.com/huan/state-switch/issues/1 * * Three-valued Logic (3VL): `true`, `false`, and * 'pending': it's in process, not stable. */ declare type Pending = 'pending'; export declare type ActiveListener = (state: true | Pending) => void | Promise; export declare type InactiveListener = (state: true | Pending) => void | Promise; interface StateSwitchEventListener { active: ActiveListener; inactive: InactiveListener; } declare const StateSwitchEventEmitter: new () => TypedEventEmitter; declare type StateType = keyof StateSwitchEventListener; export type { Pending, StateType, }; export { StateSwitchEventEmitter, }; //# sourceMappingURL=events.d.ts.map