type EventPayloadMapping = {};

/**
 * Extends the Main "Window" Interface
 */
interface Window {
  electron: {
    ping: () => Promise<string>;
  };
}

type UnsubscribeFunction = () => void;
type SubscribeFunction<Event extends keyof EventPayloadMapping> = (payload: EventPayloadMapping[Event]) => void;
