import { PlainObj } from './types'; export interface State { obj: PlainObj; tmpState: Partial; } export declare class ExecuteOnTempState { private oldState; private obj; private tmpState; constructor(state?: State); private backAndReturn; from(obj: PlainObj): this; to(tmpState: Partial): this; state(state: State): this; execute(syncOrAsyncAction: (tmp?: PlainObj) => R): R; } export declare function temp(obj: PlainObj): ExecuteOnTempState;