import type { ComponentRegistry, RegistryPropValue } from './registry.js'; export interface InstanceHit { /** Registry key. */ name: string; /** Registry importPath. If not present, name — Identifies the same implementation source across multiple screens. */ sourceId: string; /** Only safe literal props are retained (functions, objects, and ReactElement are discarded). */ props: Record; /** It is used by the source editor to safely create AST operations by preserving the original literal type. */ primitiveProps: Record; /** only if memoizedProps.children is string. */ childrenText: string; } export type InstanceResolver = (el: Element, exclude?: ReadonlySet) => InstanceHit | null; /** Create a resolver that creates a registry reverse map (component → name) once and closes it — does not rebuild it on each call. */ export declare function createInstanceResolver(registry: ComponentRegistry): InstanceResolver;