import { WebViewErrorEvent } from 'react-native-webview/lib/WebViewTypes'; import { Type, InternalWidgetConfigurationProps, WidgetConfigurationProps } from './widget_configuration'; export type Props = WebViewProps & SsoUrlProps & InternalWidgetConfigurationProps & CustomWidgetConfigurationProps; export type ApiRequestOptions = { url: RequestInfo; options: RequestInit; }; export type ApiResponseBody = { widget_url: { type: Type; url: string; }; }; export type WebViewProps = { onWebViewError?: (event: WebViewErrorEvent) => void; }; export type SsoUrlProps = SsoUrlMethodProps & SsoUrlRequestProps; export type SsoUrlMethodProps = SsoUrlMethodUrlProps | SsoUrlMethodPlatformApiProps | SsoUrlMethodProxyServerProps; export type SsoUrlMethodUrlProps = { url: string; }; export type SsoUrlMethodPlatformApiProps = { apiKey: string; clientId: string; environment: string; userGuid: string; }; export type SsoUrlMethodProxyServerProps = { proxy: string; }; export type SsoUrlRequestProps = { onSsoUrlLoadError?: (error: Error) => void; ssoRequestBuilder?: (props: WidgetConfigurationProps & InternalWidgetConfigurationProps) => ApiRequestOptions; ssoRequestPreprocess?: (opts: ApiRequestOptions) => ApiRequestOptions; ssoRequestPostprocess?: (res: ApiResponseBody) => string; }; export declare function isSsoUrlMethodUrl(props: SsoUrlProps): props is SsoUrlMethodUrlProps; export declare function isSsoUrlMethodProxyServer(props: SsoUrlProps): props is SsoUrlMethodProxyServerProps; export declare function isSsoUrlMethodPlatformApi(props: SsoUrlProps): props is SsoUrlMethodPlatformApiProps;