UNPKG

tdesign-react

Version:
12 lines (11 loc) 747 B
import React from 'react'; import { NotificationInfoOptions, NotificationInstance, NotificationPlacementList, NotificationThemeList, TdNotificationProps } from './type'; interface NotificationListInstance extends TdNotificationProps { push: (theme: NotificationThemeList, options: NotificationInfoOptions) => Promise<NotificationInstance>; remove: (key: string) => void; removeAll: () => void; } export declare const listMap: Map<NotificationPlacementList, NotificationListInstance>; export declare const NotificationRemoveContext: React.Context<(key: string) => void>; export declare const fetchListInstance: (placement: NotificationPlacementList, attach: HTMLElement, zIndex: number) => Promise<NotificationListInstance>; export {};