import { TFunction } from 'i18next';
type MessageDispatcher = {
    key: string;
    ns?: string;
    t: TFunction;
};
type ErrorDispatcher = {
    err: any;
    t?: TFunction;
    key?: string;
};
export declare const getErrorMessageValue: ({ err, t, key }: ErrorDispatcher) => string;
export declare const useMessageUtils: () => {
    dispatchLoading: (val: boolean, text?: string) => void;
    dispatchError: ({ err, t, key }: ErrorDispatcher) => void;
    dispatchMessage: ({ key, ns, t }: MessageDispatcher) => void;
    dispatchMessageDirect: (value: string, type?: "success" | "error" | "warning") => void;
    isLoading: () => boolean;
    dispatchSilent: (val: boolean) => void;
    isSilentLoading: () => boolean;
};
export {};
