import { isProxy } from './utils'; import { SimpleState } from '../types'; declare const unwrapProxy: (proxy: T) => T; /** * deep proxies an object so it is only updateable through an update callback. * outside an updater, it is impossible to make changes * * This a very (very) basic and naive replacement for Immer * * It only proxies simple objects (not maps or sets) and arrays * It doesnt create new references and doesnt copy over anything * * Original object is changed! * * DOESNT support updating state (wrapped seperately) that is set as a child of another state * @param obj * @returns {{state, update, unwrap}} */ declare const createState: (obj: Record) => SimpleState; export default createState; export { isProxy, unwrapProxy as unwrap }; //# sourceMappingURL=createState.d.ts.map