declare module 'redux-location-state' { import type {Dispatch, Middleware, PayloadAction, Reducer, Store} from '@reduxjs/toolkit'; import type {History, Location} from 'history'; import type {LOCATION_POP, LOCATION_PUSH} from 'redux-location-state/lib/constants'; export function listenForHistoryChange(store: Store, history: History): void; export interface ParamSetup { [key: string]: { [key: string]: { stateKey: string; type?: 'array' | 'bool' | 'number' | 'object' | 'date'; initialState?: any; options?: { shouldPush?: boolean; isFlags?: boolean; delimiter?: string; keepOrder?: boolean; serialize?: (value: any) => string; parse?: (value: string) => any; }; }; }; } export interface LocationWithQuery extends Location { query: Record; } export function createReduxLocationActions( paramSetup: ParamSetup, mergeLocationToState: any, history: History, rootReducer: Reducer, overwriteLocationHandling: ( setupObject: ParamSetup, nextState: S, location: Location, ) => {location: Location; shouldPush: boolean}, ): { locationMiddleware: Middleware< {}, S, Dispatch< | PayloadAction | PayloadAction > >; }; } declare module 'redux-location-state/lib/parseQuery' { import type {ParamSetup} from 'redux-location-state'; export function parseQuery(setupObject: ParamSetup, payload: any): Record; } declare module 'redux-location-state/lib/constants' { export const LOCATION_PUSH: 'REDUX-LOCATION-POP-ACTION'; export const LOCATION_POP: 'REDUX-LOCATION-PUSH-ACTION'; } declare module 'redux-location-state/lib/helpers' { import type {Location} from 'history'; import type {ParamSetup} from 'redux-location-state'; export function getMatchingDeclaredPath(setupObject: ParamSetup, location: Location): string; } declare module 'redux-location-state/lib/stateToParams' { import type {Location} from 'history'; import type {ParamSetup} from 'redux-location-state'; export function stateToParams( setupObject: ParamSetup, state: S, location: L, ): {location: L; shouldPush: boolean}; }