import { JSONObject } from '../types'; /** * Drops the cached metadata of the given model, or of every model when none is * given. Called on logout so that a new session never reads the metadata of the * previous one, and available to force a refresh after a studio update. */ export declare function clearModelMetaCaches(modelName?: string): void; export declare function fetchJsonFieldsOfModel({ modelName, type, userRoleIds, }: { modelName: string; type?: string; userRoleIds?: number[] | null; }): Promise; export declare function fetchObject({ modelName, id, }: { modelName: string; id: number; }): Promise; export declare function fetchObjectModelTypes({ modelName }: { modelName: string; }): Promise; export declare function updateJsonFieldsObject({ modelName, id, version, values, }: { modelName: string; id: number; version: number; values: any; }): Promise; export declare function fetchData({ modelName, domain, searchValue, page, criteria, searchFields, }: { modelName: string; domain?: string; searchValue?: string; page?: number; criteria?: any[]; searchFields?: string[]; }): Promise; export declare function fetchMetaConfig({ modelName, }: { modelName: string; }): Promise; export declare function fetchModelFields({ modelName, }: { modelName: string; }): Promise; interface SelectionItem { title: string; value: string; } export declare function fetchSelectionMap({ modelName, selections, }: { modelName: string; selections: string[]; }): Promise>; export declare function fetchSelectionOptions({ modelName, attrsPanelName, fieldName, }: { modelName: string; attrsPanelName: string; fieldName: string; }): Promise; export declare function executeButtonAction(actions: string, model: string, object: any): Promise; export {};