import type { MetadataIndex } from '../../services/metadata-index/types.js'; import type { AgentDiagramData } from '../../types/diagram.js'; /** * Infer an object's domain group from its API name: * - `ns__Object__c` → the package namespace (`ns`) — e.g. `cgcloud`. * - `Object__c` (no namespace) → `custom`. * - `Object` (no `__c`) → `core` (a standard sObject). * A junction refinement (an object that only points OUT at >= 2 others and is * pointed at by none) overrides this to `junction` in {@link forceAppToErd}. */ export declare function inferObjectGroup(apiName: string): string; /** * Build an ER `AgentDiagramData` from a metadata index. * * Nodes: every `CustomObject` entry (standard + custom), grouped by namespace. * Edges: each `referenceTo` relationship, with the source collapsed to the * relationship field's PARENT object and the field→own-parent ownership edge * dropped. Object→object edges that survive are deduped; the relationship field * name (when known) becomes the edge label. * * @param index the metadata index from `buildMetadataIndex` * @param title diagram title (default "Data Model") */ export declare function forceAppToErd(index: MetadataIndex, title?: string): AgentDiagramData;