import * as React from 'react'; import { ButtonProps, ButtonSize } from '../Button'; import { BaseModalLayoutProps, ModalTheme, FootnoteProps } from '../BaseModalLayout'; export interface AnnouncementModalLayoutProps extends BaseModalLayoutProps { /** The modal's title. */ title?: React.ReactNode; /** The modal's subtitle. */ subtitle?: React.ReactNode; /** Accepts any content to render in the modal body. Children passed directly are treated as `content` as well. */ content?: React.ReactNode; /** Sets the text of the primary action button. */ primaryButtonText?: React.ReactNode; /** Passed to the primary action button as props without any filter / mutation. */ primaryButtonProps?: Omit; /** a callback for when the primary action button is clicked. */ primaryButtonOnClick?(): void; /** Sets the text of the secondary action button. */ secondaryButtonText?: React.ReactNode; /** Passed to the secondary button as props without any filter / mutation. */ secondaryButtonProps?: Omit; /** callback for when the secondary action button is clicked. */ secondaryButtonOnClick?(): void; /** Controls the size of the action buttons. * @default 'medium' */ actionsSize?: ButtonSize; /** Accepts any content to render as the first element on the same row as the action buttons. */ sideActions?: React.ReactNode; /** Accepts any content to render as a footnote at the bottom of the modal. */ footnote?: React.ReactNode; /** Sets the look and feel of the footnote. */ footnoteSkin?: FootnoteProps['skin']; /** The illustration src or the illustration node itself. */ illustration?: React.ReactNode; /** When not provided, the primary link won't be rendered. */ linkText?: React.ReactNode; /** Defines a callback function which is called when the link is clicked. */ linkOnClick?: () => void; /** Controls the skin of the modal. It's also applied to the footer buttons and the link. */ skin?: Exclude; /** Controls the skin of the modal. * @deprecated Use `skin` instead. */ theme?: Exclude; } //# sourceMappingURL=AnnouncementModalLayout.types.d.ts.map