import { type HTMLMotionProps } from "motion/react";
import React from "react";
export type AlertDuration = number | "standard" | "short";
export interface AlertOptions {
/**
* uniqueな文字列を入れてください。removeAlertを用いて任意のAlertを削除する場合に使用できます。
* 指定しない場合に任意の文字列が生成され、addAlertから取得できます。
*/
id?: string;
/**
* 役割を表し、左側のアイコンと色を変更します。
* @default "success"
*/
severity?: "error" | "success" | "warning";
/**
* トーストコンポーネントが消えるまでの時間(ms)を表します。
* @default Infinity
*/
duration?: AlertDuration;
}
export interface AlertRichMessageType {
reason?: string;
action?: string;
happend: string;
log?: string;
}
export type AlertMessageType = string | AlertRichMessageType;
export interface AlertProps extends AlertOptions, Omit, "id" | "onAnimationComplete" | "onDrag" | "onDragStart" | "onDragEnd" | "onAnimationStart"> {
message: AlertMessageType;
}
export declare const Alert: React.ForwardRefExoticComponent & React.RefAttributes>;