import { IconProps } from "../icons/Icons.types.mjs"; import { SectionMessageTitleProps } from "./SectionMessageTitle.mjs"; import { SectionMessageDescriptionProps } from "./SectionMessageDescription.mjs"; import { SectionMessageContentProps } from "./SectionMessageContent.mjs"; import { ReactNode } from "react"; declare const icons: { readonly success: ({ size, className, ...props }: IconProps) => import("react").JSX.Element; readonly info: ({ size, className, ...props }: IconProps) => import("react").JSX.Element; readonly warning: ({ size, className, ...props }: IconProps) => import("react").JSX.Element; readonly error: ({ size, className, ...props }: IconProps) => import("react").JSX.Element; }; export interface SectionMessageProps { /** * Sets the tone of the message, which decides its icon and color: `info`, * `success`, `warning` or `error`. * @default 'info' */ variant?: keyof typeof icons; /** * Size of the component. Which values exist is defined by the theme and listed * in the "Appearance" section of the component's documentation. */ size?: string; /** * Children of the component. */ children?: ReactNode; /** * Adds a close button, makes the section message dismissable. */ closeButton?: boolean; /** * Whether the message is open/visible (controlled). Pass `false` to hide the message. */ open?: boolean; /** * Whether the message is open/visible by default (uncontrolled). * @default true */ defaultOpen?: boolean; /** * Handler that is called when the user dismisses the message. Called with `false`. */ onOpenChange?: (open: boolean) => void; /** * Announce the message to assistive technology when it appears. * Fires on mount and whenever controlled visibility (`open`) transitions * from hidden to visible. Priority is `assertive` for `variant="error"` and * `polite` for all other variants. To re-announce the same message without a * visibility change, remount the component with a changing `key`. * @default true for `variant="error"`, false otherwise. */ announce?: boolean; /** * Heading level of the `` (h2–h6). Adjust it so the * title fits into the surrounding document outline. * @default 3 */ headingLevel?: 2 | 3 | 4 | 5 | 6; } export declare const SectionMessage: { ({ variant, size, children, closeButton, open, defaultOpen, onOpenChange, announce: announceProp, headingLevel, ...props }: SectionMessageProps): import("react").JSX.Element | null; Title: ({ children }: SectionMessageTitleProps) => import("react").JSX.Element; Description: ({ children }: SectionMessageDescriptionProps) => import("react").JSX.Element; Content: ({ children }: SectionMessageContentProps) => import("react").JSX.Element; }; export {};