import { type RedirectSDK, type RedirectOptions } from '../types/authentication'; import { type AuthorizeResponse } from '../types/auth'; export default class Redirect { options: RedirectOptions; private sdk; constructor(sdk: RedirectSDK, options: RedirectOptions); /** * run default authorization flow */ authorize(): void; /** * this function checks if the current origin was redirected to with authorize data * @returns {Promise} promise that resolves to authorize data or error */ authorizeData(): Promise; }