import type { ResolvedModel, ResolvedField, ModelRelationship, ExtensionSource } from './types.js'; /** * Central registry providing lookup access to all resolved models, * their relationships, and extension metadata. */ export declare class SchemaRegistry { private readonly modelMap; private readonly relationships; private readonly extensionSourceMap; constructor(models: ResolvedModel[]); /** Retrieve a single model by its fully qualified name (e.g. "sales.Invoice"). */ getModel(qualifiedName: string): ResolvedModel | undefined; /** Return all registered models. */ getAllModels(): ResolvedModel[]; /** Return the field definitions for a given model. */ getFieldsForModel(qualifiedName: string): ResolvedField[]; /** Return all computed relationships across the schema. */ getRelationships(): ModelRelationship[]; /** Return relationships originating from a specific model. */ getRelationshipsForModel(qualifiedName: string): ModelRelationship[]; /** Return extension source metadata for a model (which apps contributed fields). */ getExtensionSources(qualifiedName: string): ExtensionSource[]; /** Group all models by their module name. */ getModelsByModule(): Map; /** * Builds a map from model name to the list of apps that extended it with extra fields. */ private buildExtensionSourceMap; } //# sourceMappingURL=registry.d.ts.map