minishouyin/node_modules/antd/es/notification/useNotification.d.ts

9 lines
516 B
TypeScript
Raw Permalink Normal View History

2025-11-12 11:35:57 +08:00
import React from 'react';
import type { NotificationConfig, NotificationInstance } from './interface';
type HolderProps = NotificationConfig & {
onAllRemoved?: VoidFunction;
};
export declare function useInternalNotification(notificationConfig?: HolderProps): readonly [NotificationInstance, React.ReactElement];
export default function useNotification(notificationConfig?: NotificationConfig): readonly [NotificationInstance, React.ReactElement<unknown, string | React.JSXElementConstructor<any>>];
export {};