import { HTMLAttributes, ReactNode } from 'react';
import type { AriaLive } from '../../common';
import type { Sentiment as SurfaceSentiment } from '../../sentimentSurface';
import { LinkProps } from '../../link';
import { PrimitivePromptProps } from '../PrimitivePrompt';
export type InfoPromptAction = Pick & {
/**
* The label text for the action link
*/
label: string;
};
export type InfoPromptMedia = {
/**
* The icon/image asset to display.
* The asset should include its own accessibility attributes (e.g. title, aria-label) if it conveys meaning.
*/
asset: ReactNode;
};
export type InfoPromptProps = Omit, 'title' | 'aria-live' | 'role'> & Pick & {
/**
* The sentiment determines the colour scheme
* @default 'neutral'
*/
sentiment?: SurfaceSentiment;
/**
* Handler called when the close button is clicked.
* If not provided, the close button is hidden.
*/
onDismiss?: () => void;
/**
* Custom media to override the default status icon.
* Success and proposition sentiments support 2 status variations: standard checkmark & confetti.
*/
media?: InfoPromptMedia;
/**
* Action link to be displayed below the description
*/
action?: InfoPromptAction;
/**
* Title content for the prompt
*/
title?: string;
/**
* Description text for the prompt (required)
*/
description: string;
className?: string;
/**
* Sets the ARIA live region politeness level.
* - `'polite'` — announced after the current speech (default)
* - `'assertive'` — interrupts the current speech immediately
* - `'off'` — disables the live region entirely
* @default 'polite'
*/
'aria-live'?: AriaLive;
};
/**
* `InfoPrompt` displays important contextual messages to users within a screen.
* It provides a visually distinct way to communicate information, warnings, errors,
* or positive feedback with optional actions and dismissal capabilities.
*
* Use this component to replace the deprecated `Alert` component (run codemod to migrate: **`npx \@wise/wds-codemods@latest info-prompt`**).
*
* Guidance can be found in the [design system](https://wise.design/components/info-prompt).
*/
export declare const InfoPrompt: ({ sentiment, onDismiss, media, action, title, description, className, "aria-live": ariaLive, "data-testid": dataTestId, ...restProps }: InfoPromptProps) => import("react").JSX.Element;
//# sourceMappingURL=InfoPrompt.d.ts.map