import React from 'react'; import { getKeyThenIncreaseKey, ConfigOptions as AntdConfigOptions, ThenableArgument, MessageType, ArgsProps as AntdArgsProps, attachTypeApi, MessageInstance, MessageApi, ConfigOnClose, getInstance } from 'antd/lib/message/index'; export { getKeyThenIncreaseKey, attachTypeApi }; /** @private test Only function. Not work on production */ export { getInstance }; export interface ConfigOptions extends AntdConfigOptions { closeIcon?: React.ReactNode; } interface ArgsProps extends AntdArgsProps { withBackground?: boolean; size?: 'middle' | 'large'; title?: string | boolean; closeable?: boolean; closeIcon?: React.ReactNode; } export type { ThenableArgument, NoticeType, MessageType, ArgsProps, ConfigOnClose, MessageInstance, MessageApi }; declare type NoticeType = 'info' | 'success' | 'error' | 'warning' | 'loading'; declare const api: any; export { api as message }; declare const _default: MessageApi; export default _default;