You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

34 lines
937 B

/// <reference types="vite/client" />
/// <reference types="vite-plugin-pwa/vanillajs" />
import { TNip07 } from '@/types'
declare module '*.md?raw' {
const content: string
export default content
}
declare global {
interface Window {
nostr?: TNip07
/** Set by {@link electron/preload.cjs} when running inside Electron. */
imwaldElectron?: {
isElectron: true
/** Ask Electron main to reload index safely (avoids file:// history path reload issues). */
reloadApp?: () => Promise<boolean>
/**
* Allowlisted HTTP(S) from main (translate + LanguageTool). See `electronAwareFetch`.
*/
backendRequest?: (payload: {
url: string
method: string
headers: Record<string, string>
body: string | null
}) => Promise<{
status: number
statusText: string
headers: Record<string, string>
body: string
}>
}
}
}