mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
Add Random/Preferred/None modes, preferred provider selection, and provider-order fallback. Catbox/Imgur/PostImages on Android via WebView; Electron CDP automation for Imgur/PostImages. Hide upload controls on web runtime.
21 lines
558 B
TypeScript
21 lines
558 B
TypeScript
declare global {
|
|
interface Window {
|
|
isElectron: boolean;
|
|
}
|
|
}
|
|
|
|
import type { ProviderId } from './lib/media-hosting/types';
|
|
|
|
declare global {
|
|
interface Window {
|
|
electronApi?: {
|
|
isElectron: boolean;
|
|
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 }>;
|
|
};
|
|
}
|
|
}
|
|
|
|
export {};
|