index.d.ts 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989
  1. // Type definitions for systeminformation
  2. // Project: https://github.com/sebhildebrandt/systeminformation
  3. // Definitions by: sebhildebrandt <https://github.com/sebhildebrandt>
  4. export namespace Systeminformation {
  5. // 1. General
  6. interface TimeData {
  7. current: string;
  8. uptime: string;
  9. timezone: string;
  10. timezoneName: string;
  11. }
  12. // 2. System (HW)
  13. interface RaspberryRevisionData {
  14. manufacturer: string;
  15. processor: string;
  16. type: string;
  17. revision: string;
  18. }
  19. interface SystemData {
  20. manufacturer: string;
  21. model: string;
  22. version: string;
  23. serial: string;
  24. uuid: string;
  25. sku: string;
  26. virtual: boolean;
  27. virtualHost?: string;
  28. raspberry?: RaspberryRevisionData;
  29. }
  30. interface BiosData {
  31. vendor: string;
  32. version: string;
  33. releaseDate: string;
  34. revision: string;
  35. serial?: string;
  36. language?: string;
  37. features?: string[];
  38. }
  39. interface BaseboardData {
  40. manufacturer: string;
  41. model: string;
  42. version: string;
  43. serial: string;
  44. assetTag: string;
  45. memMax: number | null;
  46. memSlots: number | null;
  47. }
  48. interface ChassisData {
  49. manufacturer: string;
  50. model: string;
  51. type: string;
  52. version: string;
  53. serial: string;
  54. assetTag: string;
  55. sku: string;
  56. }
  57. // 3. CPU, Memory, Disks, Battery, Graphics
  58. interface CpuData {
  59. manufacturer: string;
  60. brand: string;
  61. vendor: string;
  62. family: string;
  63. model: string;
  64. stepping: string;
  65. revision: string;
  66. voltage: string;
  67. speed: number;
  68. speedMin: number;
  69. speedMax: number;
  70. governor: string;
  71. cores: number;
  72. physicalCores: number;
  73. efficiencyCores?: number;
  74. performanceCores?: number;
  75. processors: number;
  76. socket: string;
  77. flags: string;
  78. virtualization: boolean;
  79. cache: CpuCacheData;
  80. }
  81. interface CpuCacheData {
  82. l1d: number;
  83. l1i: number;
  84. l2: number;
  85. l3: number;
  86. }
  87. interface CpuCurrentSpeedData {
  88. min: number;
  89. max: number;
  90. avg: number;
  91. cores: number[];
  92. }
  93. interface CpuTemperatureData {
  94. main: number;
  95. cores: number[];
  96. max: number;
  97. socket?: number[];
  98. chipset?: number;
  99. }
  100. interface MemData {
  101. total: number;
  102. free: number;
  103. used: number;
  104. active: number;
  105. available: number;
  106. buffcache: number;
  107. buffers: number;
  108. cached: number;
  109. slab: number;
  110. swaptotal: number;
  111. swapused: number;
  112. swapfree: number;
  113. }
  114. interface MemLayoutData {
  115. size: number;
  116. bank: string;
  117. type: string;
  118. ecc?: boolean | null;
  119. clockSpeed: number | null;
  120. formFactor: string;
  121. manufacturer?: string;
  122. partNum: string;
  123. serialNum: string;
  124. voltageConfigured: number | null;
  125. voltageMin: number | null;
  126. voltageMax: number | null;
  127. }
  128. interface SmartData {
  129. json_format_version: number[];
  130. smartctl: {
  131. version: number[];
  132. platform_info: string;
  133. build_info: string;
  134. argv: string[];
  135. exit_status: number;
  136. };
  137. device: {
  138. name: string;
  139. info_name: string;
  140. type: string;
  141. protocol: string;
  142. };
  143. model_family?: string,
  144. model_name?: string,
  145. serial_number?: string,
  146. firmware_version?: string,
  147. smart_status: {
  148. passed: boolean;
  149. };
  150. trim?: {
  151. supported: boolean;
  152. },
  153. ata_smart_attributes?: {
  154. revision: number;
  155. table: {
  156. id: number;
  157. name: string;
  158. value: number;
  159. worst: number;
  160. thresh: number;
  161. when_failed: string;
  162. flags: {
  163. value: number;
  164. string: string;
  165. prefailure: boolean;
  166. updated_online: boolean;
  167. performance: boolean;
  168. error_rate: boolean;
  169. event_count: boolean;
  170. auto_keep: boolean;
  171. };
  172. raw: { value: number; string: string; };
  173. }[];
  174. };
  175. ata_smart_error_log?: {
  176. summary: {
  177. revision: number;
  178. count: number;
  179. };
  180. };
  181. ata_smart_self_test_log?: {
  182. standard: {
  183. revision: number;
  184. table: {
  185. type: {
  186. value: number;
  187. string: string;
  188. },
  189. status: {
  190. value: number;
  191. string: string;
  192. passed: boolean;
  193. },
  194. lifetime_hours: number;
  195. }[];
  196. count: number;
  197. error_count_total: number;
  198. error_count_outdated: number;
  199. };
  200. };
  201. nvme_pci_vendor?: {
  202. id: number,
  203. subsystem_id: number;
  204. },
  205. nvme_smart_health_information_log?: {
  206. critical_warning?: number,
  207. temperature?: number,
  208. available_spare?: number,
  209. available_spare_threshold?: number,
  210. percentage_used?: number,
  211. data_units_read?: number,
  212. data_units_written?: number,
  213. host_reads?: number,
  214. host_writes?: number,
  215. controller_busy_time?: number,
  216. power_cycles?: number,
  217. power_on_hours?: number,
  218. unsafe_shutdowns?: number,
  219. media_errors?: number,
  220. num_err_log_entries?: number,
  221. warning_temp_time?: number,
  222. critical_comp_time?: number,
  223. temperature_sensors?: number[];
  224. },
  225. user_capacity?: {
  226. blocks: number,
  227. bytes: number;
  228. },
  229. logical_block_size?: number,
  230. temperature: {
  231. current: number;
  232. };
  233. power_cycle_count: number;
  234. power_on_time: {
  235. hours: number;
  236. };
  237. }
  238. interface DiskLayoutData {
  239. device: string;
  240. type: string;
  241. name: string;
  242. vendor: string;
  243. size: number;
  244. bytesPerSector: number;
  245. totalCylinders: number;
  246. totalHeads: number;
  247. totalSectors: number;
  248. totalTracks: number;
  249. tracksPerCylinder: number;
  250. sectorsPerTrack: number;
  251. firmwareRevision: string;
  252. serialNum: string;
  253. interfaceType: string;
  254. smartStatus: string;
  255. temperature: null | number;
  256. smartData?: SmartData;
  257. }
  258. interface BatteryData {
  259. hasBattery: boolean;
  260. cycleCount: number;
  261. isCharging: boolean;
  262. voltage: number;
  263. designedCapacity: number;
  264. maxCapacity: number;
  265. currentCapacity: number;
  266. capacityUnit: string;
  267. percent: number;
  268. timeRemaining: number,
  269. acConnected: boolean;
  270. type: string;
  271. model: string;
  272. manufacturer: string;
  273. serial: string;
  274. additionalBatteries?: BatteryData[];
  275. }
  276. interface GraphicsData {
  277. controllers: GraphicsControllerData[];
  278. displays: GraphicsDisplayData[];
  279. }
  280. interface GraphicsControllerData {
  281. vendor: string;
  282. vendorId?: string;
  283. model: string;
  284. deviceId?: string;
  285. bus: string;
  286. busAddress?: string;
  287. vram: number | null;
  288. vramDynamic: boolean;
  289. external?: boolean;
  290. cores?: number;
  291. metalVersion?: string;
  292. subDeviceId?: string;
  293. driverVersion?: string;
  294. name?: string;
  295. pciBus?: string;
  296. pciID?: string;
  297. fanSpeed?: number;
  298. memoryTotal?: number;
  299. memoryUsed?: number;
  300. memoryFree?: number;
  301. utilizationGpu?: number;
  302. utilizationMemory?: number;
  303. temperatureGpu?: number;
  304. temperatureMemory?: number;
  305. powerDraw?: number;
  306. powerLimit?: number;
  307. clockCore?: number;
  308. clockMemory?: number;
  309. }
  310. interface GraphicsDisplayData {
  311. vendor: string;
  312. vendorId: string | null;
  313. model: string;
  314. productionYear: number | null;
  315. serial: string | null;
  316. deviceName: string | null;
  317. displayId: string | null;
  318. main: boolean;
  319. builtin: boolean;
  320. connection: string | null;
  321. sizeX: number | null;
  322. sizeY: number | null;
  323. pixelDepth: number | null;
  324. resolutionX: number | null;
  325. resolutionY: number | null;
  326. currentResX: number | null;
  327. currentResY: number | null;
  328. positionX: number;
  329. positionY: number;
  330. currentRefreshRate: number | null;
  331. }
  332. // 4. Operating System
  333. interface OsData {
  334. platform: string;
  335. distro: string;
  336. release: string;
  337. codename: string;
  338. kernel: string;
  339. arch: string;
  340. hostname: string;
  341. fqdn: string;
  342. codepage: string;
  343. logofile: string;
  344. serial: string;
  345. build: string;
  346. servicepack: string;
  347. uefi: boolean;
  348. hypervizor?: boolean;
  349. remoteSession?: boolean;
  350. hypervisor?: boolean;
  351. }
  352. interface UuidData {
  353. os: string;
  354. hardware: string;
  355. macs: string[];
  356. }
  357. interface VersionData {
  358. kernel?: string;
  359. openssl?: string;
  360. systemOpenssl?: string;
  361. systemOpensslLib?: string;
  362. node?: string;
  363. v8?: string;
  364. npm?: string;
  365. yarn?: string;
  366. pm2?: string;
  367. gulp?: string;
  368. grunt?: string;
  369. git?: string;
  370. tsc?: string;
  371. mysql?: string;
  372. redis?: string;
  373. mongodb?: string;
  374. nginx?: string;
  375. php?: string;
  376. docker?: string;
  377. postfix?: string;
  378. postgresql?: string;
  379. perl?: string;
  380. python?: string;
  381. python3?: string;
  382. pip?: string;
  383. pip3?: string;
  384. java?: string;
  385. gcc?: string;
  386. virtualbox?: string;
  387. dotnet?: string;
  388. }
  389. interface UserData {
  390. user: string;
  391. tty: string;
  392. date: string;
  393. time: string;
  394. ip: string;
  395. command: string;
  396. }
  397. // 5. File System
  398. interface FsSizeData {
  399. fs: string;
  400. type: string;
  401. size: number;
  402. used: number;
  403. available: number;
  404. use: number;
  405. mount: string;
  406. }
  407. interface FsOpenFilesData {
  408. max: number;
  409. allocated: number;
  410. available: number;
  411. }
  412. interface BlockDevicesData {
  413. name: string;
  414. identifier: string;
  415. type: string;
  416. fsType: string;
  417. mount: string;
  418. size: number;
  419. physical: string;
  420. uuid: string;
  421. label: string;
  422. model: string;
  423. serial: string;
  424. removable: boolean;
  425. protocol: string;
  426. }
  427. interface FsStatsData {
  428. rx: number;
  429. wx: number;
  430. tx: number;
  431. rx_sec: number | null;
  432. wx_sec: number | null;
  433. tx_sec: number | null;
  434. ms: number;
  435. }
  436. interface DisksIoData {
  437. rIO: number;
  438. wIO: number;
  439. tIO: number;
  440. rIO_sec: number | null;
  441. wIO_sec: number | null;
  442. tIO_sec: number | null;
  443. rWaitTime: number;
  444. wWaitTime: number;
  445. tWaitTime: number;
  446. rWaitPercent: number | null;
  447. wWaitPercent: number | null;
  448. tWaitPercent: number | null;
  449. ms: number;
  450. }
  451. // 6. Network related functions
  452. interface NetworkInterfacesData {
  453. iface: string;
  454. ifaceName: string;
  455. ip4: string;
  456. ip4subnet: string;
  457. ip6: string;
  458. ip6subnet: string;
  459. mac: string;
  460. internal: boolean;
  461. virtual: boolean;
  462. operstate: string;
  463. type: string;
  464. duplex: string;
  465. mtu: number;
  466. speed: number;
  467. dhcp: boolean;
  468. dnsSuffix: string;
  469. ieee8021xAuth: string;
  470. ieee8021xState: string;
  471. carrierChanges: number;
  472. }
  473. interface NetworkStatsData {
  474. iface: string;
  475. operstate: string;
  476. rx_bytes: number;
  477. rx_dropped: number;
  478. rx_errors: number;
  479. tx_bytes: number;
  480. tx_dropped: number;
  481. tx_errors: number;
  482. rx_sec: number;
  483. tx_sec: number;
  484. ms: number;
  485. }
  486. interface NetworkConnectionsData {
  487. protocol: string;
  488. localAddress: string;
  489. localPort: string;
  490. peerAddress: string;
  491. peerPort: string;
  492. state: string;
  493. pid: number;
  494. process: string;
  495. }
  496. interface InetChecksiteData {
  497. url: string;
  498. ok: boolean;
  499. status: number;
  500. ms: number;
  501. }
  502. interface WifiNetworkData {
  503. ssid: string;
  504. bssid: string;
  505. mode: string;
  506. channel: number;
  507. frequency: number;
  508. signalLevel: number;
  509. quality: number;
  510. security: string[];
  511. wpaFlags: string[];
  512. rsnFlags: string[];
  513. }
  514. interface WifiInterfaceData {
  515. id: string;
  516. iface: string;
  517. model: string;
  518. vendor: string;
  519. mac: string;
  520. }
  521. interface WifiConnectionData {
  522. id: string;
  523. iface: string;
  524. model: string;
  525. ssid: string;
  526. bssid: string;
  527. channel: number;
  528. type: string;
  529. security: string;
  530. frequency: number;
  531. signalLevel: number;
  532. txRate: number;
  533. }
  534. // 7. Current Load, Processes & Services
  535. interface CurrentLoadData {
  536. avgLoad: number;
  537. currentLoad: number;
  538. currentLoadUser: number;
  539. currentLoadSystem: number;
  540. currentLoadNice: number;
  541. currentLoadIdle: number;
  542. currentLoadIrq: number;
  543. rawCurrentLoad: number;
  544. rawCurrentLoadUser: number;
  545. rawCurrentLoadSystem: number;
  546. rawCurrentLoadNice: number;
  547. rawCurrentLoadIdle: number;
  548. rawCurrentLoadIrq: number;
  549. cpus: CurrentLoadCpuData[];
  550. }
  551. interface CurrentLoadCpuData {
  552. load: number;
  553. loadUser: number;
  554. loadSystem: number;
  555. loadNice: number;
  556. loadIdle: number;
  557. loadIrq: number;
  558. rawLoad: number;
  559. rawLoadUser: number;
  560. rawLoadSystem: number;
  561. rawLoadNice: number;
  562. rawLoadIdle: number;
  563. rawLoadIrq: number;
  564. }
  565. interface ProcessesData {
  566. all: number;
  567. running: number;
  568. blocked: number;
  569. sleeping: number;
  570. unknown: number;
  571. list: ProcessesProcessData[];
  572. }
  573. interface ProcessesProcessData {
  574. pid: number;
  575. parentPid: number;
  576. name: string,
  577. cpu: number;
  578. cpuu: number;
  579. cpus: number;
  580. mem: number;
  581. priority: number;
  582. memVsz: number;
  583. memRss: number;
  584. nice: number;
  585. started: string,
  586. state: string;
  587. tty: string;
  588. user: string;
  589. command: string;
  590. params: string;
  591. path: string;
  592. }
  593. interface ProcessesProcessLoadData {
  594. proc: string;
  595. pid: number;
  596. pids: number[];
  597. cpu: number;
  598. mem: number;
  599. }
  600. interface ServicesData {
  601. name: string;
  602. running: boolean;
  603. startmode: string;
  604. pids: number[];
  605. cpu: number;
  606. mem: number;
  607. }
  608. // 8. Docker
  609. interface DockerInfoData {
  610. id: string;
  611. containers: number;
  612. containersRunning: number;
  613. containersPaused: number;
  614. containersStopped: number;
  615. images: number;
  616. driver: string;
  617. memoryLimit: boolean;
  618. swapLimit: boolean;
  619. kernelMemory: boolean;
  620. cpuCfsPeriod: boolean;
  621. cpuCfsQuota: boolean;
  622. cpuShares: boolean;
  623. cpuSet: boolean;
  624. ipv4Forwarding: boolean;
  625. bridgeNfIptables: boolean;
  626. bridgeNfIp6tables: boolean;
  627. debug: boolean;
  628. nfd: number;
  629. oomKillDisable: boolean;
  630. ngoroutines: number;
  631. systemTime: string;
  632. loggingDriver: string;
  633. cgroupDriver: string;
  634. nEventsListener: number;
  635. kernelVersion: string;
  636. operatingSystem: string;
  637. osType: string;
  638. architecture: string;
  639. ncpu: number;
  640. memTotal: number;
  641. dockerRootDir: string;
  642. httpProxy: string;
  643. httpsProxy: string;
  644. noProxy: string;
  645. name: string;
  646. labels: string[];
  647. experimentalBuild: boolean;
  648. serverVersion: string;
  649. clusterStore: string;
  650. clusterAdvertise: string;
  651. defaultRuntime: string;
  652. liveRestoreEnabled: boolean;
  653. isolation: string;
  654. initBinary: string;
  655. productLicense: string;
  656. }
  657. interface DockerImageData {
  658. id: string;
  659. container: string;
  660. comment: string;
  661. os: string;
  662. architecture: string;
  663. parent: string;
  664. dockerVersion: string;
  665. size: number;
  666. sharedSize: number;
  667. virtualSize: number;
  668. author: string;
  669. created: number;
  670. containerConfig: any;
  671. graphDriver: any;
  672. repoDigests: any;
  673. repoTags: any;
  674. config: any;
  675. rootFS: any;
  676. }
  677. interface DockerContainerData {
  678. id: string;
  679. name: string;
  680. image: string;
  681. imageID: string;
  682. command: string;
  683. created: number;
  684. started: number;
  685. finished: number;
  686. createdAt: string;
  687. startedAt: string;
  688. finishedAt: string;
  689. state: string;
  690. restartCount: number;
  691. platform: string;
  692. driver: string;
  693. ports: number[];
  694. mounts: DockerContainerMountData[];
  695. }
  696. interface DockerContainerMountData {
  697. Type: string;
  698. Source: string;
  699. Destination: string;
  700. Mode: string;
  701. RW: boolean;
  702. Propagation: string;
  703. }
  704. interface DockerContainerStatsData {
  705. id: string;
  706. memUsage: number;
  707. memLimit: number;
  708. memPercent: number;
  709. cpuPercent: number;
  710. pids: number;
  711. netIO: {
  712. rx: number;
  713. wx: number;
  714. };
  715. blockIO: {
  716. r: number;
  717. w: number;
  718. };
  719. restartCount: number;
  720. cpuStats: any;
  721. precpuStats: any;
  722. memoryStats: any,
  723. networks: any;
  724. }
  725. interface DockerContainerProcessData {
  726. pidHost: string;
  727. ppid: string;
  728. pgid: string;
  729. user: string;
  730. ruser: string;
  731. group: string;
  732. rgroup: string;
  733. stat: string;
  734. time: string;
  735. elapsed: string;
  736. nice: string;
  737. rss: string;
  738. vsz: string;
  739. command: string;
  740. }
  741. interface DockerVolumeData {
  742. name: string;
  743. driver: string;
  744. labels: any;
  745. mountpoint: string;
  746. options: any;
  747. scope: string;
  748. created: number;
  749. }
  750. // 9. Virtual Box
  751. interface VboxInfoData {
  752. id: string;
  753. name: string;
  754. running: boolean;
  755. started: string;
  756. runningSince: number;
  757. stopped: string;
  758. stoppedSince: number;
  759. guestOS: string;
  760. hardwareUUID: string;
  761. memory: number;
  762. vram: number;
  763. cpus: number;
  764. cpuExepCap: string;
  765. cpuProfile: string;
  766. chipset: string;
  767. firmware: string;
  768. pageFusion: boolean;
  769. configFile: string;
  770. snapshotFolder: string;
  771. logFolder: string;
  772. hpet: boolean;
  773. pae: boolean;
  774. longMode: boolean;
  775. tripleFaultReset: boolean;
  776. apic: boolean;
  777. x2Apic: boolean;
  778. acpi: boolean;
  779. ioApic: boolean;
  780. biosApicMode: string;
  781. bootMenuMode: string;
  782. bootDevice1: string;
  783. bootDevice2: string;
  784. bootDevice3: string;
  785. bootDevice4: string;
  786. timeOffset: string;
  787. rtc: string;
  788. }
  789. interface PrinterData {
  790. id: number;
  791. name: string;
  792. model: string;
  793. uri: string;
  794. uuid: string;
  795. local: boolean;
  796. status: string;
  797. default: boolean;
  798. shared: boolean;
  799. }
  800. interface UsbData {
  801. id: number | string;
  802. bus: number;
  803. deviceId: number;
  804. name: string;
  805. type: string;
  806. removable: boolean;
  807. vendor: string;
  808. manufacturer: string;
  809. maxPower: string;
  810. serialNumber: string;
  811. }
  812. interface AudioData {
  813. id: number | string;
  814. name: string;
  815. manufacturer: string;
  816. default: boolean;
  817. revision: string;
  818. driver: string;
  819. in: boolean;
  820. out: boolean;
  821. interfaceType: string;
  822. status: string;
  823. }
  824. interface BluetoothDeviceData {
  825. device: string;
  826. name: string;
  827. macDevice: string;
  828. macHost: string;
  829. batteryPercent: number;
  830. manufacturer: string;
  831. type: string;
  832. connected: boolean;
  833. }
  834. // 10. "Get All at once" - functions
  835. interface StaticData {
  836. version: string;
  837. system: SystemData;
  838. bios: BiosData;
  839. baseboard: BaseboardData;
  840. chassis: ChassisData;
  841. os: OsData;
  842. uuid: UuidData;
  843. versions: VersionData;
  844. cpu: CpuData;
  845. graphics: GraphicsData;
  846. net: NetworkInterfacesData[];
  847. memLayout: MemLayoutData[];
  848. diskLayout: DiskLayoutData[];
  849. }
  850. }
  851. export function version(): string;
  852. export function system(cb?: (data: Systeminformation.SystemData) => any): Promise<Systeminformation.SystemData>;
  853. export function bios(cb?: (data: Systeminformation.BiosData) => any): Promise<Systeminformation.BiosData>;
  854. export function baseboard(cb?: (data: Systeminformation.BaseboardData) => any): Promise<Systeminformation.BaseboardData>;
  855. export function chassis(cb?: (data: Systeminformation.ChassisData) => any): Promise<Systeminformation.ChassisData>;
  856. export function time(): Systeminformation.TimeData;
  857. export function osInfo(cb?: (data: Systeminformation.OsData) => any): Promise<Systeminformation.OsData>;
  858. export function versions(apps?: string, cb?: (data: Systeminformation.VersionData) => any): Promise<Systeminformation.VersionData>;
  859. export function shell(cb?: (data: string) => any): Promise<string>;
  860. export function uuid(cb?: (data: Systeminformation.UuidData) => any): Promise<Systeminformation.UuidData>;
  861. export function cpu(cb?: (data: Systeminformation.CpuData) => any): Promise<Systeminformation.CpuData>;
  862. export function cpuFlags(cb?: (data: string) => any): Promise<string>;
  863. export function cpuCache(cb?: (data: Systeminformation.CpuCacheData) => any): Promise<Systeminformation.CpuCacheData>;
  864. export function cpuCurrentSpeed(cb?: (data: Systeminformation.CpuCurrentSpeedData) => any): Promise<Systeminformation.CpuCurrentSpeedData>;
  865. export function cpuTemperature(cb?: (data: Systeminformation.CpuTemperatureData) => any): Promise<Systeminformation.CpuTemperatureData>;
  866. export function currentLoad(cb?: (data: Systeminformation.CurrentLoadData) => any): Promise<Systeminformation.CurrentLoadData>;
  867. export function fullLoad(cb?: (data: number) => any): Promise<number>;
  868. export function mem(cb?: (data: Systeminformation.MemData) => any): Promise<Systeminformation.MemData>;
  869. export function memLayout(cb?: (data: Systeminformation.MemLayoutData[]) => any): Promise<Systeminformation.MemLayoutData[]>;
  870. export function battery(cb?: (data: Systeminformation.BatteryData) => any): Promise<Systeminformation.BatteryData>;
  871. export function graphics(cb?: (data: Systeminformation.GraphicsData) => any): Promise<Systeminformation.GraphicsData>;
  872. export function fsSize(cb?: (data: Systeminformation.FsSizeData[]) => any): Promise<Systeminformation.FsSizeData[]>;
  873. export function fsOpenFiles(cb?: (data: Systeminformation.FsOpenFilesData[]) => any): Promise<Systeminformation.FsOpenFilesData[]>;
  874. export function blockDevices(cb?: (data: Systeminformation.BlockDevicesData[]) => any): Promise<Systeminformation.BlockDevicesData[]>;
  875. export function fsStats(cb?: (data: Systeminformation.FsStatsData) => any): Promise<Systeminformation.FsStatsData>;
  876. export function disksIO(cb?: (data: Systeminformation.DisksIoData) => any): Promise<Systeminformation.DisksIoData>;
  877. export function diskLayout(cb?: (data: Systeminformation.DiskLayoutData[]) => any): Promise<Systeminformation.DiskLayoutData[]>;
  878. export function networkInterfaceDefault(cb?: (data: string) => any): Promise<string>;
  879. export function networkGatewayDefault(cb?: (data: string) => any): Promise<string>;
  880. export function networkInterfaces(cb?: (data: Systeminformation.NetworkInterfacesData[]) => any): Promise<Systeminformation.NetworkInterfacesData[]>;
  881. export function networkStats(ifaces?: string, cb?: (data: Systeminformation.NetworkStatsData[]) => any): Promise<Systeminformation.NetworkStatsData[]>;
  882. export function networkConnections(cb?: (data: Systeminformation.NetworkConnectionsData[]) => any): Promise<Systeminformation.NetworkConnectionsData[]>;
  883. export function inetChecksite(url: string, cb?: (data: Systeminformation.InetChecksiteData) => any): Promise<Systeminformation.InetChecksiteData>;
  884. export function inetLatency(host?: string, cb?: (data: number) => any): Promise<number>;
  885. export function wifiNetworks(cb?: (data: Systeminformation.WifiNetworkData[]) => any): Promise<Systeminformation.WifiNetworkData[]>;
  886. export function wifiInterfaces(cb?: (data: Systeminformation.WifiInterfaceData[]) => any): Promise<Systeminformation.WifiInterfaceData[]>;
  887. export function wifiConnections(cb?: (data: Systeminformation.WifiConnectionData[]) => any): Promise<Systeminformation.WifiConnectionData[]>;
  888. export function users(cb?: (data: Systeminformation.UserData[]) => any): Promise<Systeminformation.UserData[]>;
  889. export function processes(cb?: (data: Systeminformation.ProcessesData) => any): Promise<Systeminformation.ProcessesData>;
  890. export function processLoad(processNames: string, cb?: (data: Systeminformation.ProcessesProcessLoadData[]) => any): Promise<Systeminformation.ProcessesProcessLoadData[]>;
  891. export function services(serviceName: string, cb?: (data: Systeminformation.ServicesData[]) => any): Promise<Systeminformation.ServicesData[]>;
  892. export function dockerInfo(cb?: (data: Systeminformation.DockerInfoData) => any): Promise<Systeminformation.DockerInfoData>;
  893. export function dockerImages(all?: boolean, cb?: (data: Systeminformation.DockerImageData[]) => any): Promise<Systeminformation.DockerImageData[]>;
  894. export function dockerContainers(all?: boolean, cb?: (data: Systeminformation.DockerContainerData[]) => any): Promise<Systeminformation.DockerContainerData[]>;
  895. export function dockerContainerStats(id?: string, cb?: (data: Systeminformation.DockerContainerStatsData[]) => any): Promise<Systeminformation.DockerContainerStatsData[]>;
  896. export function dockerContainerProcesses(id?: string, cb?: (data: any) => any): Promise<Systeminformation.DockerContainerProcessData[]>;
  897. export function dockerVolumes(cb?: (data: Systeminformation.DockerVolumeData[]) => any): Promise<Systeminformation.DockerVolumeData[]>;
  898. export function dockerAll(cb?: (data: any) => any): Promise<any>;
  899. export function vboxInfo(cb?: (data: Systeminformation.VboxInfoData[]) => any): Promise<Systeminformation.VboxInfoData[]>;
  900. export function printer(cb?: (data: Systeminformation.PrinterData[]) => any): Promise<Systeminformation.PrinterData[]>;
  901. export function usb(cb?: (data: Systeminformation.UsbData[]) => any): Promise<Systeminformation.UsbData[]>;
  902. export function audio(cb?: (data: Systeminformation.AudioData[]) => any): Promise<Systeminformation.AudioData[]>;
  903. export function bluetoothDevices(cb?: (data: Systeminformation.BluetoothDeviceData[]) => any): Promise<Systeminformation.BluetoothDeviceData[]>;
  904. export function getStaticData(cb?: (data: Systeminformation.StaticData) => any): Promise<Systeminformation.StaticData>;
  905. export function getDynamicData(srv?: string, iface?: string, cb?: (data: any) => any): Promise<any>;
  906. export function getAllData(srv?: string, iface?: string, cb?: (data: any) => any): Promise<any>;
  907. export function get(valuesObject: any, cb?: (data: any) => any): Promise<any>;
  908. export function observe(valuesObject: any, interval: number, cb?: (data: any) => any): number;