/* eslint-disable @typescript-eslint/consistent-type-imports */
///
declare namespace NodeJS {
interface ProcessEnv {
/**
* The built directory structure
*
* ```tree
* ├─┬─┬ dist
* │ │ └── index.html
* │ │
* │ ├─┬ dist-electron
* │ │ ├── main.js
* │ │ └── preload.js
* │
* ```
*/
DIST: string
/** /dist/ or /public/ */
VITE_PUBLIC: string
}
}
// Used in Renderer process, expose in `preload.ts`
interface Window {
ipcRenderer: import('electron').IpcRenderer
electronRuntime: boolean
platform: NodeJS.Platform
adbNativeTcpSocket: {
getProp(serial: string, key: string): Promise
getDevices(): Promise<{ name: string; serial: string }[]>
connect(host: string, port: number): Promise<{ name: string; serial: string }>
shell(serial: string, command: string, callback: (chunk: Uint8Array) => void): Promise
spawn(serial: string, command: string, callback: (chunk: Uint8Array) => void): Promise
disconnect(): Promise
}
}