import type { EntityRevisionId } from "../entity.js"; import type { BaseUrl, DataTypeWithMetadata, Entity, EntityId, EntityTypeWithMetadata, OntologyTypeVersion, PropertyTypeWithMetadata } from "@blockprotocol/type-system"; export type DataTypeVertex = { kind: "dataType"; inner: DataTypeWithMetadata; }; export type PropertyTypeVertex = { kind: "propertyType"; inner: PropertyTypeWithMetadata; }; export type EntityTypeVertex = { kind: "entityType"; inner: EntityTypeWithMetadata; }; export type EntityVertex = { kind: "entity"; inner: EntityImpl; }; export type OntologyVertex = DataTypeVertex | PropertyTypeVertex | EntityTypeVertex; export type KnowledgeGraphVertex = EntityVertex; export type Vertex = OntologyVertex | KnowledgeGraphVertex; export declare const isDataTypeVertex: (vertex: Vertex) => vertex is DataTypeVertex; export declare const isPropertyTypeVertex: (vertex: Vertex) => vertex is PropertyTypeVertex; export declare const isEntityTypeVertex: (vertex: Vertex) => vertex is EntityTypeVertex; export declare const isEntityVertex: (vertex: Vertex) => vertex is EntityVertex; export type VertexId = { baseId: BaseId; revisionId: RevisionId; }; export type EntityVertexId = VertexId; export type OntologyTypeVertexId = VertexId; export type GraphElementVertexId = EntityVertexId | OntologyTypeVertexId; export declare const isOntologyTypeVertexId: (vertexId: unknown) => vertexId is OntologyTypeVertexId; export declare const isEntityVertexId: (vertexId: unknown) => vertexId is EntityVertexId; export type OntologyVertices = { /** Branding the keys causes too much complication with accessing the vertices. */ [baseUrl: string]: { [revisionId: string]: OntologyVertex; }; }; export type KnowledgeGraphEditionMap = { [revisionId: EntityRevisionId]: KnowledgeGraphVertex; }; export type KnowledgeGraphVertices = { /** Branding the keys causes too much complication with accessing the vertices. */ [entityId: string]: KnowledgeGraphEditionMap; }; export declare const isKnowledgeGraphVertex: (vertex: OntologyVertex | KnowledgeGraphVertex) => vertex is KnowledgeGraphVertex; export declare const isOntologyVertex: (vertex: OntologyVertex | KnowledgeGraphVertex) => vertex is OntologyVertex; export type Vertices = OntologyVertices | KnowledgeGraphVertices;