import { HyperCubeDef, HyperCube, SelectionObject, Variable, QField } from './data'; import { GetAppConfig, GetGlobalConfig } from './auth'; export type ListTypes = "FieldList" | "MeasureList" | "DimensionList" | "BookmarkList" | "SelectionObject" | "SnapshotList" | "MediaList" | "sheet" | "MasterObject" | "VariableList" | "story"; export interface IApp { id: string; selectionState: SelectionObject; addAlternateState(qStateName: string): Promise; back(): Promise; clearAll(lockedAlso?: boolean, state?: string): Promise; close(): void; createCube(qHyperCubeDef: HyperCubeDef, callback?: (hypercube: HyperCube) => void): Promise; destroySession(id: string): Promise; doReload(qMode?: "0" | "1" | "2", qPartial?: boolean, qDebug?: boolean): Promise; model: any; doSave(qFileName?: string): Promise; visualization: { get?: (id: string, elem?: any | string, options?: any) => Promise; }; field(field: string, state?: string): QField; forward(): Promise; getAppLayout(callback: (layout: any) => void): Promise; getFullPropertyTree(id: string): Promise; getList(type: ListTypes, callback: (reply: any) => void): Promise; destroySessionObject(id: string): Promise; getObject(elem?: HTMLElement | string, id?: string | "CurrentSelections", options?: { noInteraction?: boolean; noSelections?: boolean; }): Promise; getObjectProperties(id: string): Promise; getSnapshot(elem?: HTMLElement | string, id?: string): Promise; lockAll(state?: string): Promise; removeAlternateState(qStateName: string): Promise; unlockAll(state?: string): Promise; createGenericObject(_0: any, callback: (_1: any) => void): Promise; variable: { getContent(variable: string, callback: (value: Variable, app: IApp) => void): Promise; setContent(variable: string, value: string): void; }; } export interface IQlik { callRepository(path: string, method?: string, body?: string): Promise; currApp(object?: any): IApp; getAppList(callback: any, config?: GetAppConfig): void; getGlobal(config: GetGlobalConfig): any; openApp(appId: string, config?: GetAppConfig): IApp; resize(ID?: string): void; setLanguage(lang: string): void; setOnError(onError: any, onWarning?: any): void; }