import { FetchedPayload } from '@xyo-network/huri'; import { XyoSchemaPayload } from '@xyo-network/schema-payload-plugin'; import { XyoSchemaNameToValidatorMap } from './SchemaNameToValidatorMap'; export type XyoSchemaCacheEntry = FetchedPayload; export declare class XyoSchemaCache { /** * Object representing `null` since LRU Cache types * only allow for types that derive from object */ protected static readonly NULL: XyoSchemaCacheEntry; private static _instance?; onSchemaCached?: (name: string, entry: XyoSchemaCacheEntry) => void; proxy?: string; private _cache; private _validators; private getDebounce; private constructor(); static get instance(): XyoSchemaCache; /** * A map of cached schema (by name) to payload validators for the schema. A schema * must be cached via `get('schema.name')` before it's validator can be used as * they are compiled dynamically at runtime upon retrieval. */ get validators(): T; get(schema?: string): Promise; private cacheSchemaIfValid; private cacheSchemas; private fetchSchema; } //# sourceMappingURL=SchemaCache.d.ts.map