import { ConfigProps, MessageType } from '.';
import { MessageProps } from './interface';
declare type hookMessageFunc = (config: MessageProps | string) => MessageType;
export declare type messageFuncType = {
    info?: hookMessageFunc;
    success?: hookMessageFunc;
    warning?: hookMessageFunc;
    error?: hookMessageFunc;
    normal?: hookMessageFunc;
};
declare function useMessage(commonConfig?: ConfigProps): [messageFuncType, JSX.Element];
export default useMessage;
