PromoCursed/node_modules/antd/lib/message/useMessage.d.ts
2024-08-20 23:25:37 +04:00

9 lines
467 B
TypeScript

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 {};