import { KeyValueCache } from '@apollo/utils.keyvaluecache'; import { ServerContext, ITextSnapshot, IWriteTextFileOptions, IReadTextFileOptions, ICacheTextFileService } from '@files-stack/core'; import { URI } from '@vscode-alt/monaco-editor/esm/vs/base/common/uri'; import { CdmLogger } from '@cdm-logger/core'; export interface CacheOptions { ttl?: number; } export declare class FilesDataSource implements ICacheTextFileService { private context; private logger?; private cachedTextFileService; private cache; constructor(context: ServerContext, logger?: CdmLogger.ILogger); /** * Initialize will be called during the server setup. */ initialize(context: ServerContext, cache?: KeyValueCache): void; readCache(resource: URI, options?: IReadTextFileOptions): Promise; writeCache(resource: URI, value: string | ITextSnapshot, options?: IWriteTextFileOptions): Promise; deleteCache(resource: URI, options?: { useTrash?: boolean; recursive?: boolean; }): any; protected cacheKeyFor(resource: URI): string; }