/*
 * Copyright (C) 2007-2022 Crafter Software Corporation. All Rights Reserved.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License version 3 as published by
 * the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

import { DetailedItem, FetchContentVersion, ItemHistoryEntry } from '../../models';
import { AjaxError, AjaxResponse } from 'rxjs/ajax';
export interface HistoryConfigProps {
  item: Partial<DetailedItem>;
  rootPath?: string;
  environment?: string;
  module?: string;
  isConfig?: boolean;
}
export declare const fetchItemVersions: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<
  HistoryConfigProps,
  string
>;
export declare const fetchItemVersionsComplete: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<
  ItemHistoryEntry[],
  string
>;
export declare const fetchItemVersionsFailed: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<
  AjaxError,
  string
>;
export declare const versionsChangePage: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<
  {
    page: number;
  },
  string
>;
export declare const versionsChangeLimit: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<
  {
    limit: number;
  },
  string
>;
export declare const versionsChangeItem: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<
  {
    item: DetailedItem;
  },
  string
>;
export declare const compareToPreviousVersion: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<
  {
    id: string;
  },
  string
>;
export declare const resetVersionsState: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<'RESET_VERSIONS_STATE'>;
export declare const compareBothVersions: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<
  {
    versions: string[];
  },
  string
>;
export declare const compareBothVersionsComplete: import('@reduxjs/toolkit').ActionCreatorWithPayload<any, string>;
export declare const compareBothVersionsFailed: import('@reduxjs/toolkit').ActionCreatorWithPayload<any, string>;
export declare const revertContent: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<
  FetchContentVersion,
  string
>;
export declare const revertContentComplete: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<
  {
    path: string;
  },
  string
>;
export declare const revertContentFailed: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<
  AjaxResponse<unknown>,
  string
>;
export declare const revertToPreviousVersion: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<
  {
    id: string;
    path: string;
  },
  string
>;
