File size: 1,175 Bytes
b4143a2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/// <reference types="vite/client" />

interface AuditorBridge {
  drives: () => Promise<unknown>
  listDir: (dirPath: string, opts?: { maxEntries?: number }) => Promise<unknown>
  folderSize: (dirPath: string) => Promise<unknown>
  largeFiles: (rootPath: string, minBytes: number, maxResults: number) => Promise<unknown>
  processes: () => Promise<unknown>
  services: () => Promise<unknown>
  installed: () => Promise<unknown>
  system: () => Promise<unknown>
  network: () => Promise<unknown>
  env: (keys?: string[]) => Promise<unknown>
  startup: () => Promise<unknown>
  temp: () => Promise<unknown>
  tasks: () => Promise<unknown>
  features: () => Promise<string>
  openExplorer: (p: string) => Promise<void>
  killProcess: (pid: number) => Promise<void>
  openExternal: (url: string) => Promise<void>
  clipboardWriteText: (text: string) => Promise<void>
  notesGetAll: () => Promise<Record<string, string>>
  notesSet: (key: string, value: string) => Promise<Record<string, string>>
  notesDelete: (key: string) => Promise<Record<string, string>>
}

declare global {
  interface Window {
    auditor: AuditorBridge
  }
}

export {}