import { PayloadAction } from '@reduxjs/toolkit';
type ToastState = {
    visible?: boolean;
    message: string;
    type: 'failed' | 'success' | 'informative' | 'loading';
    duration?: number;
    bottomPosition?: number;
};
declare const toastSlice: import("@reduxjs/toolkit").Slice<ToastState, {
    showToast: (state: import("immer/dist/internal").WritableDraft<ToastState>, action: PayloadAction<ToastState>) => void;
    hideToast: (state: import("immer/dist/internal").WritableDraft<ToastState>) => void;
}, "toast">;
export default toastSlice;
export declare const useToast: () => {
    toast: ToastState;
    hideToast: () => {
        payload: undefined;
        type: "toast/hideToast";
    };
    showToast: (payload: ToastState) => {
        payload: ToastState;
        type: "toast/showToast";
    };
    showCommentErrorToast: (error: Error) => void;
};
//# sourceMappingURL=toastSlice.d.ts.map