import { Observable } from 'rxjs'; import { ContentInstance } from '@craftercms/studio-ui/models/ContentInstance'; import { ContentType } from '@craftercms/studio-ui/models/ContentType'; import { LookupTable } from '@craftercms/studio-ui/models/LookupTable'; import { Operation } from './models/Operations'; import { ModelHierarchyMap } from '@craftercms/studio-ui/utils/content'; import { SandboxItem } from '@craftercms/studio-ui/models'; declare const operationsObs$: Observable; export declare const modelHierarchyMap: ModelHierarchyMap; declare const modelsObs$: Observable; declare const contentTypesObs$: Observable; declare const pathsObs$: Observable; export { operationsObs$ as operations$, modelsObs$ as models$, contentTypesObs$ as contentTypes$, pathsObs$ as paths$ }; export declare function model$(modelId: string): Observable; export declare function hasCachedModel(modelId: string): boolean; export declare function getCachedModel(modelId: string): ContentInstance; export declare function getCachedModels(): LookupTable; export declare function getCachedModelsByPath(): LookupTable; export declare function getCachedSandboxItems(): LookupTable; export declare function getCachedSandboxItem(path: string): SandboxItem; export declare function getCachedPermissions(): string[]; export declare function fetchById(id: string): Observable>; export declare function byPathFetchIfNotLoaded(path: string): Observable; export declare function getContentInstanceByPath(path: string): ContentInstance; export declare function isInheritedField(modelId: string, fieldId: string): boolean; export declare function getModelIdFromInheritedField(modelId: string, fieldId: any): string; export declare function fetchByPath(path: string): Observable<{ model: ContentInstance; modelLookup: LookupTable; }>; export declare function flushRequestedPaths(): void; export declare function hasCachedContentType(contentTypeId: string): boolean; export declare function getCachedContentType(contentTypeId: string): ContentType; export declare function getCachedContentTypes(): LookupTable; export declare function updateField(modelId: string, fieldId: string, index: string | number, value: unknown): void; export declare function duplicateItem(modelId: string, fieldId: string, index: number | string): void; export declare function insertItem(modelId: string, fieldId: string, index: number | string, contentType: ContentType): void; export declare function createContentInstance(contentType: ContentType, path?: string): ContentInstance; export declare function insertComponent(modelId: string, fieldId: string, targetIndex: number | string, instance: ContentInstance, shared?: boolean, create?: boolean): void; export declare function insertGroup(modelId: any, fieldId: any, data: any): void; export declare function sortUpItem(modelId: string, fieldId: string, index: number | string): void; export declare function sortDownItem(modelId: string, fieldId: string, index: number | string): void; export declare function sortItem(modelId: string, fieldId: string, currentIndex: number | string, targetIndex: number | string): void; export declare function moveItem(originalModelId: string, originalFieldId: string, originalIndex: number | string, targetModelId: string, targetFieldId: string, targetIndex: number | string): void; export declare function deleteItem(modelId: string, fieldId: string, index: number | string): void; export interface FetchGuestModelCompletePayload { path: string; model: ContentInstance; modelLookup: LookupTable; modelIdByPath: LookupTable; hierarchyMap: ModelHierarchyMap; sandboxItems: SandboxItem[]; permissions: string[]; }