import React, { HTMLAttributes } from "react";
import { OverrideClassName } from "@kaizen/component-base";
import { HeadingProps } from "@kaizen/typography";
export type NotificationType = "positive" | "informative" | "cautionary" | "negative" | "security";
export type GenericNotificationProps = OverrideClassName<{
type: NotificationType;
style: "global" | "inline" | "toast";
children?: React.ReactNode;
title?: string;
persistent: boolean;
autohide: boolean;
autohideDelay?: "short" | "long";
onHide?: () => void;
automationId?: string;
noBottomMargin?: boolean;
forceMultiline?: boolean;
headingProps?: HeadingProps;
}>;
type State = {
hidden: boolean;
removed: boolean;
};
declare class GenericNotification extends React.Component {
static defaultProps: {
persistent: boolean;
autohide: boolean;
autohideDelay: string;
};
state: {
hidden: boolean;
removed: boolean;
};
autoHideTimeoutId: null | ReturnType;
containerRef: React.RefObject;
constructor(props: GenericNotificationProps);
componentDidMount(): void;
componentWillUnmount(): void;
autohideDelayMs(): number;
render(): JSX.Element | null;
className(): string;
textContainerClassName(): string;
marginTop(): string;
onTransitionEnd(e: React.TransitionEvent): void;
iconType(): HTMLAttributes;
hide(): void;
}
export default GenericNotification;