mirror of
https://github.com/Boof2015/prism.git
synced 2026-08-12 05:10:51 +02:00
24 lines
820 B
TypeScript
24 lines
820 B
TypeScript
/// <reference types="vite/client" />
|
|
|
|
import type { VisualizerDSP } from './audio/native/visualizer-dsp'
|
|
|
|
declare global {
|
|
interface Window {
|
|
visualizerAPI: VisualizerDSP | null
|
|
electronAPI: {
|
|
platform: string
|
|
minimize: () => void
|
|
close: () => void
|
|
toggleAlwaysOnTop: () => void
|
|
isAlwaysOnTop: () => Promise<boolean>
|
|
getDesktopSources: () => Promise<{ id: string; name: string }[]>
|
|
expandSettings: (panelHeight: number) => void
|
|
collapseSettings: (panelHeight: number) => void
|
|
onAlwaysOnTopChanged: (callback: (isOnTop: boolean) => void) => () => void
|
|
onToggleScope: (callback: (index: number) => void) => () => void
|
|
onToggleCapture: (callback: () => void) => () => void
|
|
onToggleSettings: (callback: () => void) => () => void
|
|
}
|
|
}
|
|
}
|