import { MutableRefObject, ReactElement } from 'react'; import { StyleProp, ViewStyle } from 'react-native'; import { WebView } from 'react-native-webview'; import { Payload } from '@mxenabled/widget-post-message-definitions'; import { Props } from '../sso'; import { LoadUrlInBrowserProps } from './load_url_in_browser'; export type StylingProps = { style?: StyleProp; webViewStyle?: StyleProp; }; type MaybeWebViewRef = MutableRefObject; type BaseProps = Props & StylingProps & LoadUrlInBrowserProps; export declare function useWidgetRenderer(props: BaseProps, dispatchEvent: (url: string, callbacks: BaseProps) => Payload | undefined): ReactElement; export declare function useWidgetRendererWithRef(props: BaseProps, dispatchEvent: (url: string, callbacks: BaseProps) => Payload | undefined): [MaybeWebViewRef, ReactElement]; export {};