UNPKG

@plurid/plurid-react

Version:

React implementation of Plurid to explore the web in three dimensions

23 lines (22 loc) 1.31 kB
import { PayloadAction } from '@reduxjs/toolkit'; import { Theme } from '@plurid/plurid-themes'; import type { AppState } from "../../store"; export interface ThemesState { general: Theme; interaction: Theme; } export declare const themes: import("@reduxjs/toolkit").Slice<ThemesState, { setGeneralTheme: (state: import("immer/dist/internal").WritableDraft<ThemesState>, action: PayloadAction<Theme>) => void; setInteractionTheme: (state: import("immer/dist/internal").WritableDraft<ThemesState>, action: PayloadAction<Theme>) => void; }, "themes">; export declare const actions: import("@reduxjs/toolkit").CaseReducerActions<{ setGeneralTheme: (state: import("immer/dist/internal").WritableDraft<ThemesState>, action: PayloadAction<Theme>) => void; setInteractionTheme: (state: import("immer/dist/internal").WritableDraft<ThemesState>, action: PayloadAction<Theme>) => void; }, "themes">; export declare const getGeneralTheme: (state: AppState) => Theme; export declare const getInteractionTheme: (state: AppState) => Theme; export declare const selectors: { getGeneralTheme: (state: AppState) => Theme; getInteractionTheme: (state: AppState) => Theme; }; export declare const reducer: import("@reduxjs/toolkit").Reducer<ThemesState, import("@reduxjs/toolkit").AnyAction>;