import { type RouterState } from "redux-first-history"; import { type Reducer, type UnknownAction as OriginalReduxAction } from "redux"; interface LoadingState { [loading: string]: number; } export interface IdleState { timeout: number; state: "active" | "idle"; } export interface State { loading: LoadingState; router: RouterState; navigationPrevented: boolean; app: Record; idle: IdleState; } declare const SET_STATE_ACTION = "@@framework/setState"; export interface Action

extends OriginalReduxAction { payload: P; name?: typeof SET_STATE_ACTION; } interface SetStateActionPayload { module: string; state: any; } export declare function setStateAction(module: string, state: object, type: string): Action; interface LoadingActionPayload { identifier: string; show: boolean; } export declare const LOADING_ACTION = "@@framework/loading"; export declare function loadingAction(show: boolean, identifier?: string): Action; interface NavigationPreventionActionPayload { isPrevented: boolean; } export declare function navigationPreventionAction(isPrevented: boolean): Action; interface IdleStateActionPayload { state: "active" | "idle"; } export declare const IDLE_STATE_ACTION = "@@framework/idle-state"; export declare function idleStateAction(state: "active" | "idle"): Action; interface IdleTimeoutActionPayload { timeout: IdleState["timeout"]; } export declare function idleTimeoutAction(timeout: number): Action; export declare function idleReducer(state: IdleState | undefined, action: Action): IdleState; export declare function rootReducer(routerReducer: Reducer): Reducer, {}>; export declare function showLoading(state: State, identifier?: string): boolean; export {}; //# sourceMappingURL=reducer.d.ts.map