/// declare global { interface Window { textile?: { platform: NodeJS.Platform; onOpenSettings: (callback: () => void) => () => void; openExternal: (url: string) => Promise; startHabitatLogin: (url: string, redirectUri: string) => Promise; contextMenu: { show: ( items: Array<{ id: string; label: string; type?: 'normal' | 'separator'; }>, ) => Promise; }; vault: { showOpenDialog: () => Promise<{ canceled: boolean; filePaths: string[]; }>; readdir: ( dirPath: string, ) => Promise<{ name: string; isDirectory: boolean; isFile: boolean }[]>; readFile: (filePath: string) => Promise; writeFile: (filePath: string, content: string) => Promise; fileExists: (filePath: string) => Promise; mkdir: (dirPath: string) => Promise; rename: (oldPath: string, newPath: string) => Promise; delete: (filePath: string) => Promise; copyFile: (srcPath: string, destPath: string) => Promise; }; }; } } declare module 'react' { interface CSSProperties { WebkitAppRegion?: 'drag' | 'no-drag'; } } export {};