mjeditor
Version:
A modern, plugin-extensible rich text editor for React with beautiful custom dialogs, notification system, and comprehensive editing features. Built with Slate.js for maximum flexibility.
15 lines • 719 B
TypeScript
import React, { ReactNode } from 'react';
interface NotificationContextType {
showNotification: (message: string, type?: 'success' | 'error' | 'warning' | 'info', duration?: number) => void;
showSuccess: (message: string, duration?: number) => void;
showError: (message: string, duration?: number) => void;
showWarning: (message: string, duration?: number) => void;
showInfo: (message: string, duration?: number) => void;
}
interface NotificationProviderProps {
children: ReactNode;
}
export declare const NotificationProvider: React.FC<NotificationProviderProps>;
export declare const useNotification: () => NotificationContextType;
export {};
//# sourceMappingURL=NotificationProvider.d.ts.map