import { ConnectOAuthRequestedPayload } from '@mxenabled/widget-post-message-definitions'; import { WebViewRef } from './webview'; import { LoadUrlInBrowserProps } from './load_url_in_browser'; export declare function makeDefaultConnectOnOAuthRequested(props: LoadUrlInBrowserProps): ({ url }: ConnectOAuthRequestedPayload) => void; type OAuthSuccessRedirectEvent = { type: "success"; success: boolean; memberGuid: string; }; type OAuthErrorRedirectEvent = { type: "error"; success: boolean; }; export type OAuthRedirectEvent = OAuthSuccessRedirectEvent | OAuthErrorRedirectEvent; export type OAuthProps = { sendOAuthPostMessage?: (webViewRef: WebViewRef, msg: string) => void; }; export declare function useOAuthDeeplink(webViewRef: WebViewRef, props: OAuthProps): OAuthRedirectEvent | null; export {};