import { CallContext } from '@xh/hoist/core'; import { ViewInfo } from './ViewInfo'; import { View } from './View'; import { ViewManagerModel, ViewUserState, ViewUpdateSpec, ViewCreateSpec } from './ViewManagerModel'; /** * Supporting class for accessing and updating ViewManager and View data. * * @internal */ export declare class DataAccess { private readonly model; constructor(model: ViewManagerModel); /** Fetch metadata for all views accessible by current user. */ fetchDataAsync(ctx: CallContext): Promise<{ views: ViewInfo[]; state: ViewUserState; }>; /** Fetch the latest version of a view, or the in-code default if token null/undefined/empty. */ fetchViewAsync(token: string, ctx: CallContext): Promise>; /** Create a new view, owned by the current user.*/ createViewAsync(spec: ViewCreateSpec, ctx: CallContext): Promise>; /** Update all aspects of a view's metadata.*/ updateViewInfoAsync(view: ViewInfo, updates: ViewUpdateSpec, ctx: CallContext): Promise>; /** Apply the same metadata updates to multiple views. */ updateViewsInfoAsync(views: ViewInfo[], updates: ViewUpdateSpec, ctx: CallContext): Promise; /** Rename or re-parent a group, cascading to every view at or nested under `from`. */ renameGroupAsync(from: string, to: string, isGlobal: boolean, ctx: CallContext): Promise; /** Update a view's value. */ updateViewValueAsync(view: View, value: Partial, ctx: CallContext): Promise>; deleteViewsAsync(views: ViewInfo[], ctx: CallContext): Promise; updateStateAsync(update: Partial, ctx: CallContext): Promise; private ensureEditable; }