import type React from 'react'; export type Placement = 'top' | 'topLeft' | 'topRight' | 'bottom' | 'bottomLeft' | 'bottomRight'; export interface NoticeConfig { content?: React.ReactNode; duration?: number | null; closeIcon?: React.ReactNode; closable?: boolean; className?: string; style?: React.CSSProperties; /** @private Internal usage. Do not override in your code */ props?: React.HTMLAttributes & Record; onClose?: VoidFunction; onClick?: React.MouseEventHandler; } export interface OpenConfig extends NoticeConfig { key: React.Key; placement?: Placement; content?: React.ReactNode; duration?: number | null; } export type InnerOpenConfig = OpenConfig & { times?: number; }; export type Placements = Partial>;