export declare class StateManager { private readonly states; private current; private readonly val; constructor(states: E); is(state: keyof E): boolean; before(state: keyof E): any; after(state: keyof E): any; get(): any; set(state: keyof E, condition?: boolean | Function, value?: Record | Function): this | NullStateManager; force(state: keyof E, condition?: boolean | Function, value?: Record | Function): this | NullStateManager; value(val?: Record | Function): {}; then(fn: Function): this; else(fn: Function): this; } declare class NullStateManager { is(): this; before(): this; after(): this; set(): this; value(): any; then(): this; else(fn: Function): this; } export {};