import type { StateSchema } from '@mo-fang/types';
import type { StoreProtocol } from '../types';
export declare class StateValue {
    id: StateSchema['id'];
    type: StateSchema['type'];
    resolveReferences: StoreProtocol['resolveReferences'];
    initialValue: StateSchema['value'];
    source: unknown;
    isSet: boolean;
    constructor(state: StateSchema, resolveReferences: StoreProtocol['resolveReferences']);
    /**
     * 获取值
     */
    get value(): unknown;
    /**
     * 设值
     *
     * @param value
     */
    setValue: (value: unknown) => void;
    /**
     * 根据路径设值
     *
     * @param path
     * @param value
     */
    setIn: (path: string | string[], value: unknown) => void;
    /**
     * 重置为原始值
     */
    reset: () => void;
    /**
     * 转换成 JSON 对象，用于编辑器提示
     *
     * @returns
     */
    toJSON(): {
        value: unknown;
        setIn: (path: string | string[], value: unknown) => void;
        setValue: (value: unknown) => void;
        reset: () => void;
    };
}
//# sourceMappingURL=state-value.d.ts.map