import { Schema } from "../Schema.js"; export declare class TypeContext { types: { [id: number]: typeof Schema; }; schemas: Map; hasFilters: boolean; /** * For inheritance support * Keeps track of which classes extends which. (parent -> children) * * Both are weak: `Reflection.decode()` makes new classes on every * handshake (an SDK's state and `room.input()` class per join), and they * must go away with their decoder instead of living here forever. */ static inheritedTypes: WeakMap>; static cachedContexts: WeakMap; static register(target: typeof Schema): void; static cache(rootClass: typeof Schema): TypeContext; constructor(rootClass?: typeof Schema); has(schema: typeof Schema): boolean; get(typeid: number): typeof Schema; add(schema: typeof Schema, typeid?: number): boolean; getTypeId(klass: typeof Schema): number; private discoverTypes; debug(): string; }