/** @packageDocumentation * @module RpcInterface */ import { Id64Array } from "@bentley/bentleyjs-core"; import { CloudStorageContainerDescriptor, CloudStorageContainerUrl } from "../CloudStorage"; import { IModelRpcProps } from "../IModel"; import { RpcInterface } from "../RpcInterface"; import { IModelTileTreeProps, TileVersionInfo } from "../TileProps"; import { ElementGraphicsRequestProps } from "../tile/ElementGraphics"; /** @public */ export declare abstract class IModelTileRpcInterface extends RpcInterface { static getClient(): IModelTileRpcInterface; /** The immutable name of the interface. */ static readonly interfaceName = "IModelTileRpcInterface"; /** The semantic version of the interface. */ static interfaceVersion: string; /** @beta */ getTileCacheContainerUrl(_tokenProps: IModelRpcProps, _id: CloudStorageContainerDescriptor): Promise; /** Returns true if an external tile cache is configured on the backend. * @internal */ isUsingExternalTileCache(): Promise; /** @internal */ requestTileTreeProps(_tokenProps: IModelRpcProps, _id: string): Promise; /** @deprecated Use generateTileContent. * @internal */ requestTileContent(iModelToken: IModelRpcProps, treeId: string, contentId: string, isCanceled?: () => boolean, guid?: string): Promise; /** Ask the backend to generate content for the specified tile. This function, unlike the deprecated `requestTileContent`, does not check the cloud storage tile cache - * Use `CloudStorageTileCache.retrieve` for that. * @internal */ generateTileContent(_rpcProps: IModelRpcProps, _treeId: string, _contentId: string, _guid: string | undefined): Promise; /** @internal */ queryVersionInfo(): Promise; /** This is a temporary workaround for folks developing authoring applications, to be removed when proper support for such applications is introduced. * Given a set of model Ids, it purges any associated tile tree state on the back-end so that the next request for the tile tree or content will recreate that state. * Invoked after a modification is made to the model(s). * If no array of model Ids is supplied, it purges *all* tile trees, which can be quite inefficient. * @internal */ purgeTileTrees(_tokenProps: IModelRpcProps, _modelIds: Id64Array | undefined): Promise; private static checkCache; /** Requests graphics for a single element in "iMdl" format. * @returns graphics in iMdl format, or `undefined` if the element's geometry produced no graphics or the request was canceled before completion. * @throws IModelError on bad request (nonexistent element, duplicate request Id, etc). * @internal */ requestElementGraphics(_rpcProps: IModelRpcProps, _request: ElementGraphicsRequestProps): Promise; } //# sourceMappingURL=IModelTileRpcInterface.d.ts.map