@realsee/dnalogel
Version:
26 lines (25 loc) • 899 B
TypeScript
import type { Five } from '@realsee/five';
import type { ValueOf } from 'type-fest';
import type { TagId, TagCacheInterface, EventMap, State } from '../typings';
import * as BasePlugin from '../../base/BasePlugin';
export declare abstract class TagCache extends BasePlugin.Controller<State, EventMap> {
private tagCacheByPanoIndex;
protected constructor(five: Five);
/**
* @description: 获取缓存
*/
protected getPanoIndexCache(params?: {
panoIndex?: number;
}): Map<TagId, TagCacheInterface>;
protected getPanoIndexCache(params?: {
panoIndex?: number;
id: TagId;
}): TagCacheInterface;
protected getPanoIndexCache(params?: {
panoIndex?: number;
id: TagId;
key: keyof TagCacheInterface;
}): ValueOf<TagCacheInterface> | undefined;
protected clearCache(): void;
protected removeCache(): void;
}