import type { ReactNode, Ref } from 'react'; import type { ForwardRefForwardPropsComponent, UnorderedListProps, NoChildrenProp } from '@pega/cosmos-react-core'; export interface ConfirmationAction { /** Label text for the button */ label: string; /** Callback when the button is clicked */ onClick: () => void; } export interface ConfirmationProps extends NoChildrenProp { /** The title of the confirmation */ title?: string; /** Region for a Field Value List component */ details?: ReactNode; /** Array of React nodes to be put into a list */ whatsNext?: UnorderedListProps['items']; /** Region for a Tasks component */ tasks?: ReactNode; /** Called when the done/close button is clicked */ onClose?: () => void; /** Secondary action button (e.g. "View ticket") */ secondaryAction?: ConfirmationAction; /** Primary action button (e.g. "Return Home") */ primaryAction?: ConfirmationAction; /** Ref for the wrapping element. */ ref?: Ref; } declare const Confirmation: ForwardRefForwardPropsComponent; export default Confirmation; //# sourceMappingURL=Confirmation.d.ts.map