import { Reducer, UnknownAction } from "@reduxjs/toolkit"; /** * Initialize a container for saving shared Redux stores. * * - Adds a `namedStores` field to the container. * * @param storeContainer - The container to initialize (optional). * @returns The initialized store container. */ export declare function initContainer(storeContainer: any): any; /** * Set a global container for saving shared Redux stores. * * - Adds a `namedStores` field to the container. * - Typically, `window` is used as the store container in the browser. * * @param storeContainer - The container for shared Redux stores. * @returns The provided store container. */ export declare function setStoreContainer(storeContainer: any): any; /** * Remove all saved Redux stores from the container. * * @returns {void} */ export declare function clearSharedStore(): void; /** * Get a saved Redux store by name. * * @param name - The name of the Redux store to retrieve. * - If `true`, return the default global Redux store. * @param storeContainer - The container of Redux stores (optional). * * @returns {object} - The named Redux store. */ export declare function getSharedStore(name: boolean | string, storeContainer: any): any; /** * Save a Redux store into the shared container by name. * * @param name - The name of the Redux store. * - If `true`, set as the global Redux store. * @param contents - The content of the store to save. * @param storeContainer - The container to store the Redux store (optional). * @returns {void} */ export declare function setSharedStore(name: boolean | string, contents: any, storeContainer: any): void; /** * Replace a reducer in the shared Redux store. * * @param newReducers - The new reducers to set. * @param info - Information about the Redux shared store. * @param storeContainer - The container holding the shared store. * @returns {object} - The shared store's original replaced reducer. */ export declare function replaceReducer(newReducers: Reducer | Record>, info: any, storeContainer: any): any; /** * Create a new Redux store with an initial state for sharing. * * @param initialState - The initial state to create the store with. * @param info - Information about the shared store. * @param storeContainer - The container to store the Redux store (optional). * @returns {object} - The shared Redux store. */ export declare function createSharedStore(initialState: any, info: any, storeContainer?: any): any; /** * Get a function to create a Redux shared store. * * @param info - Information about the shared store. * @returns {Function} - A function to create the shared store. */ export declare function getReduxCreateStore(info: any): any;