import { Store } from "../Store"; /** * Warning: check strict updating for each store * In strict mode, whenever Store state is mutated outside of mutation handlers, show warning error. * This ensures that all state mutations can be explicitly tracked by almin. * * https://github.com/almin/almin/issues/201 */ export declare class StoreGroupChangingStoreStrictChecker { private allowedChangingStoreMap; /** * allow `store` to update */ mark(store: Store): void; /** * Is this `store` allowed to update? */ isMarked(store: Store): boolean; /** * disallow `store` to update */ unMark(store: Store): void; /** * Warning: Show warning message if the `store` is not allowed update. * We recommenced to update the `store` in `Store#receivePayload` implementation. * * ## Example * * ```js * class MyStore extends Store { * receivePayload(){ * this.setState({ newState }); * } * } * ``` */ warningIfStoreIsNotAllowedUpdate(store: Store): void; }