/* Copyright 2021-2024 New Vector Ltd. SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE files in the repository root for full details. */ import { type BrowserWindow } from "electron"; import type AutoLaunch from "auto-launch"; import { type AppLocalization } from "../language-helper.js"; // global type extensions need to use var for whatever reason /* eslint-disable no-var */ declare global { var mainWindow: BrowserWindow | null; var appQuitting: boolean; var appLocalization: AppLocalization; var launcher: AutoLaunch; var vectorConfig: Record; var trayConfig: { // eslint-disable-next-line camelcase icon_path: string; brand: string; }; } /* eslint-enable no-var */