import { ReduxAsyncStore, ReduxStoreOptions } from "./types.js"; //#region src/createReduxAsyncStore/createReduxAsyncStore.d.ts /** * Creates and configures an async Redux store with support for async reducers and custom initialization. * * @param options - Configuration options for the Redux store. * @param options.settings - The settings object used to configure the Redux store. Passed directly to `configureStore`. * @param options.onInit - A function to be called when the store is initialized. * * @returns A customized `ReduxStore` object that includes: * - `store`: The underlying Redux store with async reducers support. * - `asyncReducers`: An object to store async reducers. * - `useDispatch`: A typed hook for dispatching actions. * - `useSelector`: A typed hook for selecting state from the store. * - `init`: A method to initialize the store and execute the `onInit` function. * - `addReducer`: A method to dynamically add a new reducer to the store. * - `removeReducer`: A method to dynamically remove an existing reducer from the store. * * @example * // Example usage: * const store = createReduxAsyncStore({ * settings: { * reducer: { ...initial reducers }, * }, * onInit: async (store) => { * // Custom initialization logic * }, * }); * * store.addReducer('newReducer', myReducer); * store.removeReducer('oldReducer'); */ declare function createReduxAsyncStore(options: ReduxStoreOptions): ReduxAsyncStore; //#endregion export { createReduxAsyncStore }; //# sourceMappingURL=createReduxAsyncStore.d.ts.map