import { FC, ReactNode } from 'react'; import type { ColorValue, 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; /** * Color used to fill the safe area above the modal content. * Defaults to white. */ safeAreaScrimColor?: ColorValue; /** * 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; /** * Enable debug mode to log component lifecycle, URL construction, and message handling. * Only use during development/troubleshooting. Should be disabled in production builds. */ debugMode?: boolean; }; export type KomoExperienceModalProps = OwnProps & Pick; /** @deprecated Use KomoExperienceModalProps instead. */ export type ExperienceModalProps = KomoExperienceModalProps; export declare const KomoExperienceModal: FC; /** @deprecated Use KomoExperienceModal instead. */ export declare const ExperienceModal: FC; export {}; //# sourceMappingURL=KomoExperienceModal.d.ts.map