import React, { type ReactNode } from 'react'; interface FunNotificationProps { type?: FunNotificationType; description: ReactNode; actionText?: string; onAction?: () => void; isVisible?: boolean; testId?: string; } export type FunNotificationType = 'default' | 'error' | 'warning' | 'hint' | 'warningAlert'; export type DisplayedError = { /** * Stable error code for analytics */ code: string | null; /** * Stable message key for analytics * - should not forward arbitrary 3rd-party error messages * - should not depend on locale */ messageKey: string | null; /** User-visible error message */ message: ReactNode; }; export type ErrorNotification = DisplayedError & { type: FunNotificationType; }; /** * A notification/message component with height resizing animation. * Control visibility by enabling/disabling `isVisible` prop instead of doing an outer conditional rendering. */ export declare function FunNotification({ type, description, actionText, onAction, isVisible: isVisibleProps, testId, }: FunNotificationProps): React.JSX.Element | null; export {};