import { type ComponentType, type ReactElement, type ReactNode } from "react"; import { type IError } from "../../error/IError"; import { type INotificationProps } from "./Notification"; export type IErrorNotificationProps = INotificationProps & { error?: IError; }; export type ErrorNotificationComponent = ComponentType; export declare function ErrorNotification({ error, ...props }: IErrorNotificationProps): ReactElement; export type IUseErrorNotificationProps = INotificationProps & { error?: IError; Component?: ErrorNotificationComponent; }; export interface IUseErrorNotificationResult { errorNotification: ReactNode; setErrorNotification: (error?: IError) => void; } export type IUseErrorNotification = (props: UseErrorNotificationProps) => IUseErrorNotificationResult; export declare function useErrorNotification({ Component, title, ...props }: UseErrorNotificationProps): IUseErrorNotificationResult;