import { FC, ReactNode } from 'react'; import { StyleProp, TextStyle, ViewStyle } from 'react-native'; import { type KomoCardCoverProps } from './KomoCardCover'; import { type KomoExperienceModalProps } from './KomoExperienceModal'; type OwnProps = { /** * Override the button style. */ buttonStyle?: StyleProp; /** * Override the button text style. */ buttonTextStyle?: StyleProp; /** * Override the default loader for the cover. */ coverLoader?: ReactNode; /** * Override the default error display for the cover. */ coverErrorDisplay?: ReactNode; /** * The URL of the embed metadata for the card, copied from the Komo Portal. */ embedMetaUrl: string; /** * The callback for when an error occurs during querying the embed metadata endpoint. */ onError?: (e: any) => void; /** * The callback for when the modal is closed. */ onModalClose?: () => void; /** * The callback for when the modal is opened. */ onModalOpen?: () => void; /** * Override the default error display for the modal. */ modalErrorDisplay?: KomoExperienceModalProps['errorDisplay']; /** * 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 KomoCardProps = OwnProps & Pick & Pick; export declare const KomoCard: FC; /** * @deprecated Use KomoCardProps instead. */ export type KomoCardWidgetProps = KomoCardProps; /** * @deprecated Use KomoCard instead. */ export declare const KomoCardWidget: FC; export {}; //# sourceMappingURL=KomoCard.d.ts.map