import { MetaManager } from './MetaManager.ts'; /** * Properties of an individual element returned by {@link PropTools} functions. * This object can also contain any additional fields based on the requested properties. */ export type ElementProps = { Id: any; Guid: string; Name: string; Class?: string; Type: string; ElementGuid: string; Category: string; ElNum: number; ModelId: string; ModelName: string; ModelVersionId: string; IsRef: boolean; } & any; /** * Functions for batch fetching properties for a list of elements or all elements. * See {@link MetaManager.propTools} property in {@link MetaManager} class. */ export declare class PropTools { readonly tag = "MetaManager"; private metaManager; /** * @param metaManager - {@link MetaManager} instance. */ constructor(metaManager: MetaManager); /** * Get batch properties for multiple elements by element GUIDs. * @param guids - Element GUIDs. * @param props - List of full (with paths) parameter names to retrieve. */ getBatchPropsByELGuids(guids: string[], props: string[]): Promise>; /** * Get batch properties for multiple elements by element numbers. * @param elNums - Element numbers. * @param props - List of full (with paths) parameter names to retrieve. */ getBatchPropsByElNums(elNums: number[], props: string[]): Promise>; /** * Get batch properties for all elements by model version GUIDs. * @param modelVersionIds - Model version GUIDs. * @param props - List of full (with paths) parameter names to retrieve. */ getBatchPropsByModelIds(modelVersionIds: string[], props: string[]): Promise>; /** * Converts a JSON path string into an array of strings. * @param path - The string path, e.g., "Pars.Data.Размер" or "Pars['Общая длина'].Размер". * @returns An array of keys representing the path. */ static propPathToKeys(path: string): string[]; /** * Converts an array of strings back into a JSON path string. * @param keys - An array of keys representing the path. * @returns A string path in JSON format. */ static propKeysToPath(keys: string[]): string; private fetchBatchPropsFromCacheByElNums; private fetchBatchPropsFromCacheByModelIds; private filterResultsByElNums; }