amis-rpc-design/node_modules/antd/es/message/useMessage.d.ts

9 lines
467 B
TypeScript
Raw Normal View History

2023-10-07 19:42:30 +08:00
import * as React from 'react';
import type { ConfigOptions, MessageInstance } from './interface';
type HolderProps = ConfigOptions & {
onAllRemoved?: VoidFunction;
};
export declare function useInternalMessage(messageConfig?: HolderProps): readonly [MessageInstance, React.ReactElement];
export default function useMessage(messageConfig?: ConfigOptions): readonly [MessageInstance, React.ReactElement<any, string | React.JSXElementConstructor<any>>];
export {};