import { Context } from 'react'; export interface IPaginationStoreAction { type: T; payload: P; } export declare enum PaginationActionTypes { SET_DISPATCH = "PaginationStore/SET_DISPATCH", SET_SHOW_ALL = "PaginationStore/SET_SHOW_ALL", TOGGLE_SHOW_ALL = "PaginationStore/TOGGLE_SHOW_ALL" } export declare type PaginationDispatcher = (action: IPaginationStoreAction) => void; export interface IPaginationState { currPage?: number; showAll?: boolean; } export interface IPaginationStore extends IPaginationState { dispatch?: PaginationDispatcher; } export interface IPaginationProvider { } export declare type PaginationReducer = (state: IPaginationStore, action: IPaginationStoreAction) => IPaginationStore; export interface IWithPaginationConfig { reducerFn?: (defaultReducer: PaginationReducer) => PaginationReducer; Context?: Context; } export interface IPaginationWrapperProps { dispatch?: (action: IPaginationStoreAction) => void; }