/** * @module minions-sdk/registry * MinionType registry — register, retrieve, and validate types. */ import type { MinionType } from '../types/index.js'; /** * An in-memory registry for MinionTypes. * Pre-loaded with all built-in system types. */ export declare class TypeRegistry { private types; private slugIndex; constructor(loadBuiltins?: boolean); /** * Register a MinionType in the registry. * @throws Error if a type with the same id or slug already exists. */ register(type: MinionType): void; /** * Get a type by its ID. * @returns The MinionType or undefined if not found. */ getById(id: string): MinionType | undefined; /** * Get a type by its slug. * @returns The MinionType or undefined if not found. */ getBySlug(slug: string): MinionType | undefined; /** * List all registered types. */ list(): MinionType[]; /** * Check if a type exists by ID. */ has(id: string): boolean; /** * Remove a type from the registry. * @returns true if the type was removed. */ remove(id: string): boolean; } //# sourceMappingURL=index.d.ts.map