UNPKG

greybel-languageserver-core

Version:
13 lines (12 loc) 525 B
import { LRUCache as LRU } from 'lru-cache'; import { Document as TypeDocument } from 'greybel-type-analyzer'; import { IActiveDocument } from '../../types'; export declare class DocumentMergerCache { readonly typeDocuments: LRU<number, TypeDocument>; private keyToDocumentUriMap; constructor(); createCacheKey(source: IActiveDocument, documents: IActiveDocument[]): number; registerCacheKey(key: number, documentUri: string): void; flushCacheKey(documentUri: string): void; flushCache(): void; }