/// /// 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 /** * Allowlisted HTTP(S) from main (translate + LanguageTool). See `electronAwareFetch`. */ backendRequest?: (payload: { url: string method: string headers: Record body: string | null }) => Promise<{ status: number statusText: string headers: Record body: string }> } } }