import { Event } from 'microevent.ts'; import SwitchInterface from './SwitchInterface'; export default class Switch implements SwitchInterface { private _state; constructor(_state?: boolean); read(): boolean; peek(): boolean; toggle(state: boolean): void; stateChanged: Event; beforeRead: Event; }