/** * * This file may have been modified by Bytedance Inc. (“Bytedance Inc.'s Modifications”). * All Bytedance Inc.'s Modifications are Copyright (year) Bytedance Inc.. * * This source code is licensed under the Apache license. * See LICENSE file in the project root for license information. * */ import * as React from 'react'; import { NotificationInstance as RCNotificationInstance, NoticeContent as RCNoticeContent } from 'rc-notification/es/Notification'; import { MessageInstance, ArgsProps } from '..'; export default function createUseMessage(getRcNotificationInstance: (args: ArgsProps, callback: (info: { prefixCls: string; instance: RCNotificationInstance; }) => void) => void, getRCNoticeProps: (args: ArgsProps, prefixCls: string) => RCNoticeContent): () => [MessageInstance, React.ReactElement React.ReactElement | null) | (new (props: any) => React.Component)>];