UNPKG

acud

Version:

acg react 组件库

12 lines (11 loc) • 558 B
import * as React from 'react'; import type { NotificationInstance, NotificationConfig } from './interface'; interface VoidFunction { (): void; } 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 {};