import { Doc_Base } from "./TreeNode.js"; export declare enum DataStatus { Initial = "Initial", /** Not sure if this actually gets utilized atm. (it relates to apollo's caching-layer) */ Received_CachedByApollo = "Received_CachedByApollo", /** Something gets "cached by mobx-graphlink" if its status was Received_Live, but then it's unsubscribed from. (meant for instant result-returning when resubscribing later) */ Received_CachedByMGL = "Received_CachedByMGL", Received_Live = "Received_Live" } export declare function GetPreferenceLevelOfDataStatus(status: DataStatus): 1 | 0 | 2 | 3 | 4; export declare class TreeNodeData { constructor(); status: DataStatus; data: DataShape | null; /** Whenever `data` is set, this field is updated to be a stringified version of the data. */ dataJSON: string; NotifySubscriptionDropped(allowKeepDataCached?: boolean): void; IsDataAcceptableToConsume(): boolean; SetData(data: DataShape | null, fromMemoryCache: boolean): boolean; UpdateStatusAfterDataChange(dataChanged: boolean, fromMemoryCache: boolean): void; }