Handle authentication for Reddit, and provide some helper functions for cookies and tokens.
This script should not be not be installed directly. It is a library for other scripts to include with the meta directive // @require https://update.greasyfork.org/scripts/575868/1812157/Reddit%20Auth%20%28%2Aredditcom%20only%29.js
Needs @grant GM_xmlhttpRequest and @connect www.reddit.com to work
Exposes the following functions:
declare const gmFetch: typeof GM_xmlhttpRequest extends (details: infer T) => any ? (details: T) => Promise<Tampermonkey.Response<T["context"]>> : never;
declare const pingURL: (url: string) => Promise<void>;
declare const getCookie: (name: string) => Promise<string | null>;
declare const getCookiePing: (name: string, pingSrc: string) => Promise<string>;
declare const getToken: () => Promise<string>;