import './Notification'; import { Component, OmiProps } from 'omi'; import { Styles } from '../common'; import { NotificationInfoOptions, NotificationInstance, NotificationPlacementList, NotificationThemeList, TdNotificationProps } from './type'; interface NotificationListInstance extends TdNotificationProps { push: (theme: NotificationThemeList, options: NotificationInfoOptions) => Promise; remove: (key: string) => void; removeAll: () => void; } interface NotificationListOpenOption extends NotificationInfoOptions { id: string; key: string; theme: NotificationThemeList; style: Styles; ref: Partial>; } interface NotificationListProps { attach: HTMLElement; zIndex: number; placement: NotificationPlacementList; renderCallback: Function; } export declare const listMap: Map; export declare const NotificationRemoveStore: { remove: (...args: any[]) => void; }; export default class NotificationList extends Component { static propTypes: { attach: { new (): HTMLElement; prototype: HTMLElement; }; zIndex: NumberConstructor; placement: StringConstructor; renderCallback: FunctionConstructor; }; className: string; listRef: Partial>; list: NotificationListOpenOption[]; provide: { remove: () => void; }; setList(val: NotificationListOpenOption[] | ((old: NotificationListOpenOption[]) => NotificationListOpenOption[])): void; removeItem: (key: string) => void; calOffset: (offset: string | number) => string | number; push: (theme: NotificationThemeList, options: NotificationInfoOptions) => Promise; removeAll: () => void; installed(): void; render(props: OmiProps): JSX.Element; } export declare const fetchListInstance: (placement: NotificationPlacementList, attach: HTMLElement, zIndex: number) => Promise; export {};