import { type ComponentType, type ReactElement } from "react"; import { type IError } from "../../error/IError"; import { type IAlertProps } from "./Alert"; export type IErrorAlertProps = AlertProps & { error?: IError; }; export type ErrorAlertComponent = ComponentType; export declare function ErrorAlert({ children, error, ...props }: IErrorAlertProps): ReactElement; export type IUseErrorAlertProps = ErrorAlertProps & { Component?: ErrorAlertComponent; }; export interface IUseErrorAlertResult { errorAlert: ReactElement | null; setErrorAlert: (alert?: IError) => void; } export type IUseErrorAlert = (props?: UseErrorAlertProps) => IUseErrorAlertResult; export declare function useErrorAlert({ Component, ...props }?: UseErrorAlertProps): IUseErrorAlertResult;