api相关优化

This commit is contained in:
xuncha
2026-02-19 17:05:43 +08:00
parent ba07d47496
commit 4e64c6ad6e
5 changed files with 412 additions and 198 deletions

View File

@@ -501,6 +501,11 @@ export interface ElectronAPI {
onToken: (callback: (token: string) => void) => () => void
onDownloadProgress: (callback: (payload: { downloaded: number; total: number; speed: number }) => void) => () => void
}
http: {
start: (port?: number) => Promise<{ success: boolean; port?: number; error?: string }>
stop: () => Promise<{ success: boolean }>
status: () => Promise<{ running: boolean; port: number; mediaExportPath: string }>
}
}
export interface ExportOptions {