import type { CircuitComponent, ComponentKind, ComponentParams, PartCatalog, PartDefinition } from "./types.js"; /** * Stable fallbacks for legacy instances whose params do not uniquely identify * one of several catalog variants. These values are deliberately explicit — * catalog ordering must never silently change persisted model identity. */ export declare const CANONICAL_CATALOG_UID_BY_KIND: Partial>; export type CatalogResolutionSource = "explicit" | "only-candidate" | "legacy-params" | "canonical-fallback" | "unresolved"; export interface CatalogIdentityInput { kind: ComponentKind; params?: ComponentParams; catalogUid?: string; } export interface CatalogPartResolution { part: PartDefinition | null; catalogUid: string | null; source: CatalogResolutionSource; } export interface CatalogResolver { resolve(input: CatalogIdentityInput): CatalogPartResolution; byUid(uid: string): PartDefinition | null; candidates(kind: ComponentKind): readonly PartDefinition[]; } export declare function createCatalogResolver(catalog: PartCatalog): CatalogResolver; export declare function activeCatalogResolver(): CatalogResolver; /** * Injection-reactive facade with the historical constant-object API. Each * call delegates to the resolver for the CURRENT library, so holding this * object across a setPartLibrary() boundary stays correct. */ export declare const catalogResolver: CatalogResolver; export declare function resolveCatalogPart(input: CatalogIdentityInput): PartDefinition | null; /** Populate identity on a legacy component without changing explicit identity. */ export declare function withResolvedCatalogIdentity(component: CircuitComponent): CircuitComponent;