export interface OAuthWatcherOptions { apiOrigin: string | (() => string | Promise); offscreenUrl: string | (() => string | Promise); offscreenReasons: chrome.offscreen.Reason[]; offscreenJustification: string; } export declare function matchOAuthCallback(url: string, apiOrigin: string): string | null; /** Whether this is one of our post-payment return pages. Matched by path only — * the outcome lives in the URL fragment, which we neither need nor can rely on * seeing here. */ export declare function isCheckoutReturn(url: string, apiOrigin: string): boolean; export declare function installOAuthWatcher(opts: OAuthWatcherOptions): void; //# sourceMappingURL=oauth-watcher.d.ts.map