amis-rpc-design/node_modules/antd/es/notification/useNotification.d.ts
2023-10-07 19:42:30 +08:00

9 lines
517 B
TypeScript

import * as 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<any, string | React.JSXElementConstructor<any>>];
export {};