2024-02-27 17:58:08 +01:00
|
|
|
declare global {
|
|
|
|
|
interface Window {
|
|
|
|
|
isElectron: boolean;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-18 18:51:02 +08:00
|
|
|
import type { ProviderId } from './lib/media-hosting/types';
|
|
|
|
|
|
2025-05-22 17:42:04 +02:00
|
|
|
declare global {
|
|
|
|
|
interface Window {
|
|
|
|
|
electronApi?: {
|
|
|
|
|
isElectron: boolean;
|
2026-02-18 18:51:02 +08:00
|
|
|
copyToClipboard: (text: string) => Promise<{ success: boolean; error?: string }>;
|
|
|
|
|
getPlatform: () => Promise<{ platform: NodeJS.Platform; arch: string; version: string }>;
|
|
|
|
|
automateUploadMedia: (options: { provider: ProviderId; filePath: string }) => Promise<{ url: string; provider: ProviderId }>;
|
2026-02-19 13:18:15 +08:00
|
|
|
getPathForFile?: (file: File) => string | null;
|
2025-05-22 17:42:04 +02:00
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2024-02-27 17:58:08 +01:00
|
|
|
export {};
|