ChargerEventMap: Readonly<{
    battery: Readonly<{
        isCharging: boolean;
        level: number;
    }>;
    messageReceived: ChargerMessages.ChargerMessageOrType;
    messageSend: ChargerMessages.ChargerMessageOrType;
    statusChanged: PixelStatusEvent;
}>

Event map for Charger class. This is the list of supported events where the property name is the event name and the property type the event data type. Call Charger.addEventListener to subscribe to an event.

Type declaration