mirror of
				https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
				synced 2025-11-04 08:13:43 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			44 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			44 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
declare module "*.jpg";
 | 
						|
declare module "*.png";
 | 
						|
declare module "*.woff2";
 | 
						|
declare module "*.woff";
 | 
						|
declare module "*.ttf";
 | 
						|
declare module "*.scss" {
 | 
						|
  const content: Record<string, string>;
 | 
						|
  export default content;
 | 
						|
}
 | 
						|
 | 
						|
declare module "*.svg";
 | 
						|
 | 
						|
declare interface Window {
 | 
						|
  __TAURI__?: {
 | 
						|
    writeText(text: string): Promise<void>;
 | 
						|
    invoke(command: string, payload?: Record<string, unknown>): Promise<any>;
 | 
						|
    dialog: {
 | 
						|
      save(options?: Record<string, unknown>): Promise<string | null>;
 | 
						|
    };
 | 
						|
    fs: {
 | 
						|
      writeBinaryFile(path: string, data: Uint8Array): Promise<void>;
 | 
						|
      writeTextFile(path: string, data: string): Promise<void>;
 | 
						|
    };
 | 
						|
    notification: {
 | 
						|
      requestPermission(): Promise<Permission>;
 | 
						|
      isPermissionGranted(): Promise<boolean>;
 | 
						|
      sendNotification(options: string | Options): void;
 | 
						|
    };
 | 
						|
    updater: {
 | 
						|
      checkUpdate(): Promise<UpdateResult>;
 | 
						|
      installUpdate(): Promise<void>;
 | 
						|
      onUpdaterEvent(
 | 
						|
        handler: (status: UpdateStatusResult) => void,
 | 
						|
      ): Promise<UnlistenFn>;
 | 
						|
    };
 | 
						|
    http: {
 | 
						|
      fetch<T>(
 | 
						|
        url: string,
 | 
						|
        options?: Record<string, unknown>,
 | 
						|
      ): Promise<Response<T>>;
 | 
						|
    };
 | 
						|
  };
 | 
						|
}
 |