import React from "react"; import { BaseAlert } from "../../base-alert/index.js"; import { LocalAlertCloseButton, type LocalAlertCloseButtonProps } from "../close-button/LocalAlertCloseButton.js"; import { LocalAlertContent, type LocalAlertContentProps } from "../content/LocalAlertContent.js"; import { LocalAlertHeader, type LocalAlertHeaderProps } from "../header/LocalAlertHeader.js"; import { LocalAlertTitle, type LocalAlertTitleProps } from "../title/LocalAlertTitle.js"; interface LocalAlertProps extends Omit { status: Exclude; /** * data-color has no effect on LocalAlert. */ "data-color"?: never; } interface LocalAlertComponent extends React.ForwardRefExoticComponent> { /** * @see 🏷️ {@link LocalAlertHeaderProps} * @example * ```jsx * * * Info title * * * ``` */ Header: typeof LocalAlertHeader; /** * Title component for LocalAlert. Remember to use correct heading-level with the `as` prop. * @see 🏷️ {@link LocalAlertTitleProps} * @example * ```jsx * * * Info title * * * ``` */ Title: typeof LocalAlertTitle; /** * @see 🏷️ {@link LocalAlertContentProps} * @example * ```jsx * * * Info title * * * Content * * ``` */ Content: typeof LocalAlertContent; /** * @see 🏷️ {@link LocalAlertCloseProps} * @example * ```jsx * * * Info title * alert("Closed!")} /> * * * ``` */ CloseButton: typeof LocalAlertCloseButton; } /** * A component for displaying important messages about a certain part of the page. * @see [📝 Documentation](https://aksel.nav.no/komponenter/core/localalert) * @see 🏷️ {@link LocalAlertProps} * @example * ```jsx * * * Alert title * * Content * * ``` */ export declare const LocalAlert: LocalAlertComponent; export default LocalAlert; export { LocalAlertContent, LocalAlertHeader, LocalAlertTitle, LocalAlertCloseButton, }; export type { LocalAlertProps, LocalAlertContentProps, LocalAlertHeaderProps, LocalAlertTitleProps, LocalAlertCloseButtonProps, };