import type { ILeafReducer } from './LeafReducer'; import type { ActionMessage } from '../actions'; import type { StateConstructor, State } from "./State"; /** * Leaf reducer */ export declare class DefaultLeafReducer, StateType extends StateConstructor, A extends ActionMessage> implements ILeafReducer { private _leaf; private _stateType; /** * Inflate from js * * @param stateType * @param o * @returns {any} */ static stateFromJS(stateType: { new (): S; }, o: any): S; /** * Create a new leaf reducer * * @param leaf * @param stateType * @returns {AnonLeafReducer} */ static create, StateType extends StateConstructor>(leaf: string, stateType: StateType): DefaultLeafReducer>; constructor(_leaf: string, _stateType: StateType); stateType(): StateType; leaf(): string; defaultState(o: any): S; equals(o: any): boolean; valueOf(): string; }