declare const unsafeWindow: Window & typeof globalThis & { submission_data: Record; }; interface GMResponse { readyState: number; responseHeaders: string; responseText: string; status: number; statusText: string; } declare const GM_xmlhttpRequest: (details: { url: string; method: string; headers?: Record; data?: string; onload: (response: GMResponse) => void; onabort: (response: GMResponse) => void; ontimeout: (response: GMResponse) => void; onerror: (response: GMResponse) => void; }) => void; declare const GM: { getValue: (key: string, defaultValue?: string) => Promise; setValue: (key: string, value: string) => Promise; };