import { Reducer } from "react"; import { ActionFilterState, FilterState, State } from './TableGenerator.types'; /** * @function * @name ReducerOfFilterState * @param {State} state * @param {any} action * @returns {State} * @description reducer of the state of the filter * @author: Juan David Avila Caycedo [JuanDAC] (github.com/JuanDAC) */ export declare const filterTemplate: (value: Partial) => FilterState; /** * @enum * @name ActionFilter * @description actions of the filter * @author: Juan David Avila Caycedo [JuanDAC] (github.com/JuanDAC) * @property {string} SET_FILTER_STATE set the state of the filter * @property {string} SET_NEGATIVE set the negative state of the filter * @property {string} SET_VALUE set the value of the filter * @property {string} ADD_FILTER add a new filter * @property {string} REMOVE_FILTER remove a filter * @property {string} REMOVE_FILTERS remove all filters * @property {string} REMOVE_ALL_FILTERS remove all filters * @version: 1.0.0 * @since: 1.0.0 * */ export declare const enum ActionFilter { SET_FILTER_STATE = "SET_FILTER_STATE", SET_NEGATIVE = "SET_NEGATIVE", SET_VALUE = "SET_VALUE", ADD_FILTER = "ADD_FILTER", REMOVE_FILTER = "REMOVE_FILTER", REMOVE_FILTERS = "REMOVE_FILTERS", REMOVE_ALL_FILTERS = "REMOVE_ALL_FILTERS", UPDATE_STATE = "UPDATE_STATE", SET_ADDING = "SET_ADDING" } /** * @function * @name ReducerOfFilterState * @param {State} state * @param {any} action * @returns {State} * @description reducer of the state of the filter */ export declare const reducerOfFilterState: Reducer;