import { ISchema } from '../types/schema'; export declare class SchemaCacheArticle { /** * Versioning number of said schema to determine * if we need to recalculate cached values in order * to be able to work correctly. */ version: number; value: T; constructor(version: number, value: T); /** * Is this article outdated and needs to be renewed? * * @param version Of current schema * @returns true, if outdated, otherwise false */ isOutdated(version: number): boolean; } export declare class SchemaCache { protected schemaStorage: Map>>; get(schema: ISchema, key: string): T | null; save(schema: ISchema, key: string, value: T): void; } /** * Global cache for all schemas, because * we index by said schema object. */ export declare const cache: SchemaCache;