import { FC, ReactNode } from 'react'; import { ModalProps } from 'react-native'; import { KomoEvent } from '../models/KomoEvent'; import { KomoWebViewProps } from './KomoWebView'; export declare const ReactNativeWebViewName = "ReactNativeWebView"; export declare const ShareClickUrlParamName = "shareClickUrl"; type OwnProps = { /** * Whether the modal is open. */ isOpen: boolean; /** * Callback for when close is requested. */ onClose: () => void; /** * Override the default modal header. */ modalHeader?: ReactNode; /** * Override the url that redirects a user when clicking on a share link */ shareClickUrl?: string; /** * An identifier for the embedded Komo content to identify where it's being embedded */ appId?: string; /** * Override the default loading indicator. */ loadingIndicator?: ReactNode; /** * Override the default modal props. */ modalProps?: Omit; /** * Timeout in milliseconds before showing error state if loading takes too long * Defaults to 15000ms (15 seconds) */ loadingTimeoutMs?: number; /** * Override the default error display */ errorDisplay?: ({ onRetry }: { onRetry: () => void; }) => ReactNode; /** * Callback for when a komo-event is raised in the embedded experience. * @param eventData - The KomoEvent data. */ onKomoEvent?: (eventData: KomoEvent) => void; /** * Callback for when a window message is raised in the embedded experience. * Note that komo-events are also window messages, so this callback will be called for komo-events as well. * @param eventData - The event data. */ onWindowMessage?: (eventData: any) => void; }; export type ExperienceModalProps = OwnProps & Pick; export declare const ExperienceModal: FC; export {}; //# sourceMappingURL=ExperienceModal.d.ts.map