import { Extension } from '@magic-sdk/provider'; import { OAuthRedirectResult, OAuthRedirectConfiguration, OAuthPopupConfiguration, OAuthVerificationConfiguration } from './types'; declare global { interface Window { Telegram?: { WebApp: { initData: string; }; }; } } export declare class OAuthExtension extends Extension.Internal<'oauth2'> { name: "oauth2"; config: {}; compat: { 'magic-sdk': string; '@magic-sdk/react-native': boolean; '@magic-sdk/react-native-bare': boolean; '@magic-sdk/react-native-expo': boolean; }; constructor(); loginWithRedirect(configuration: OAuthRedirectConfiguration): import("@magic-sdk/provider").PromiEvent void; error: (reason: any) => void; settled: () => void; "closed-by-user": () => void; }>; getRedirectResult(configuration?: OAuthVerificationConfiguration): import("@magic-sdk/provider").PromiEvent void; "verify-mfa-code": (mfa: string) => void; "lost-device": () => void; "verify-recovery-code": (recoveryCode: string) => void; "mfa-sent-handle": () => void; "invalid-mfa-otp": () => void; "recovery-code-sent-handle": () => void; "invalid-recovery-code": () => void; "recovery-code-success": () => void; } & { done: (result: OAuthRedirectResult) => void; error: (reason: any) => void; settled: () => void; "closed-by-user": () => void; }>; loginWithPopup(configuration: OAuthPopupConfiguration): import("@magic-sdk/provider").PromiEvent void; "popup-url": (event: { popupUrl: string; provider: string; }) => void; } & { cancel: () => void; "verify-mfa-code": (mfa: string) => void; "lost-device": () => void; "verify-recovery-code": (recoveryCode: string) => void; "mfa-sent-handle": () => void; "invalid-mfa-otp": () => void; "recovery-code-sent-handle": () => void; "invalid-recovery-code": () => void; "recovery-code-success": () => void; } & { done: (result: OAuthRedirectResult) => void; error: (reason: any) => void; settled: () => void; "closed-by-user": () => void; }>; private getResult; protected seamlessTelegramLogin(): void; private retrievePKCEMetadata; } export * from './types';