mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
31 lines
1.0 KiB
TypeScript
31 lines
1.0 KiB
TypeScript
declare global {
|
|
interface Window {
|
|
BITSOCIAL_REACT_HOOKS_ACCOUNTS_STORE_INITIALIZING?: boolean;
|
|
isElectron: boolean;
|
|
defaultPkcOptions?: Record<string, unknown>;
|
|
}
|
|
}
|
|
|
|
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 }>;
|
|
automateUploadGeneratedMedia?: (options: {
|
|
provider: ProviderId;
|
|
fileName: string;
|
|
mimeType: string;
|
|
bytes: number[];
|
|
}) => Promise<{ url: string; provider: ProviderId }>;
|
|
downloadAndInstallUpdate?: (options: { url: string; fileName: string }) => Promise<void>;
|
|
getPathForFile?: (file: File) => string | null;
|
|
};
|
|
}
|
|
}
|
|
|
|
export {};
|