import { MutableRefObject } from 'react'; import { BoxProps } from '../Box'; import { ButtonProps } from '../Button'; import { ModalProps } from './Modal'; export declare const ANNOUNCEMENT_MODAL_CTA = "ANNOUNCEMENT_MODAL_CTA"; /** A callback that requires the usage of onDismiss and ref to keep things accessible! */ export declare type AnnouncementModalCTARenderProp = ({ onDismiss, ref, }: Pick & { ref: MutableRefObject; }) => JSX.Element; interface LinkCTA extends BoxProps<'a'> { } interface ButtonCTA extends ButtonProps { } export interface AnnouncementModalProps extends Omit { /** * Can either be a string or an object filled with props relevant to either a button component or a box component * rendered as an anchor element. */ cta: string | LinkCTA | ButtonCTA; imageSource?: string; modalDescription: string; modalLabel: string; ['data-testid']?: string; } export declare const AnnouncementModal: ({ className, cta, imageSource, modalDescription, modalLabel, onDismiss, variant, withCloseButton, ...rest }: AnnouncementModalProps) => JSX.Element; export {};