import { DisposableStore, IAICompletionOption, IDisposable } from '@opensumi/ide-core-browser'; import { IIntelligentCompletionsResult } from '../intelligent-completions'; /** * 缓存服务 * 1. 过期时间为 1min * 2. 用 prompt 的 hash 值作为 key */ export declare class PromptCache implements IDisposable { protected _disposables: DisposableStore; private hashCalculateService; private preferenceService; private cacheMap; protected calculateCacheKey(requestBean: IAICompletionOption): string; protected _isCacheEnabled: boolean; constructor(); getCache(requestBean: IAICompletionOption): (IIntelligentCompletionsResult & { relationId: string; }) | null; setCache(bean: IAICompletionOption, res: any): boolean; dispose(): void; } //# sourceMappingURL=promptCache.d.ts.map