import { SET_IMPORTS, SET_REDIRECTS, SET_TOTAL_IMPORTS, SET_TOTAL_ITEMS } from "./constants";

export interface ISetRedirects {
	type: typeof SET_REDIRECTS;
	payload: { redirects: any[] };
}

export interface ISetTotalItems {
	type: typeof SET_TOTAL_ITEMS;
	payload: { totalItems: number };
}

export interface ISetImports {
	type: typeof SET_IMPORTS;
	payload: { imports: any };
}

export interface ISetTotalImports {
	type: typeof SET_TOTAL_IMPORTS;
	payload: { totalImports: number };
}

export type RedirectsActionsCreators = ISetRedirects | ISetTotalItems | ISetImports | ISetTotalImports;
