import type { EntityVertexId, OntologyTypeVertexId, Subgraph } from "../../types/subgraph.js"; import type { DataTypeWithMetadata, Entity, EntityTypeWithMetadata, PropertyTypeWithMetadata } from "@blockprotocol/type-system"; /** * Looking to build a subgraph? You probably want {@link buildSubgraph} from `@blockprotocol/graph/stdlib` * * This MUTATES the given {@link Subgraph} by adding a given list of data types to the vertices. * Mutating a Subgraph is unsafe in most situations – you should know why you need to do it. * * @param {Subgraph} subgraph – the subgraph to mutate by adding the provided entities * @param {DataTypeWithMetadata[]} dataTypes – the data types to add to the provided subgraph * @returns {OntologyTypeVertexId[]} – the vertex IDs of the data type vertices that were added */ export declare const addDataTypeVerticesToSubgraphByMutation: (subgraph: Subgraph, dataTypes: DataTypeWithMetadata[]) => OntologyTypeVertexId[]; /** * Looking to build a subgraph? You probably want {@link buildSubgraph} from `@blockprotocol/graph/stdlib` * * This MUTATES the given {@link Subgraph} by adding a given list of property types to the vertices. * Mutating a Subgraph is unsafe in most situations – you should know why you need to do it. * * @param {Subgraph} subgraph – the subgraph to mutate by adding the provided entities * @param {PropertyTypeWithMetadata[]} propertyTypes – the data types to add to the provided subgraph * @returns {OntologyTypeVertexId[]} – the vertex IDs of the property type vertices that were added */ export declare const addPropertyTypeVerticesToSubgraphByMutation: (subgraph: Subgraph, propertyTypes: PropertyTypeWithMetadata[]) => OntologyTypeVertexId[]; /** * Looking to build a subgraph? You probably want {@link buildSubgraph} from `@blockprotocol/graph/stdlib` * * This MUTATES the given {@link Subgraph} by adding a given list of entity types to the vertices. * Mutating a Subgraph is unsafe in most situations – you should know why you need to do it. * * @param {Subgraph} subgraph – the subgraph to mutate by adding the provided entities * @param {EntityTypeWithMetadata[]} entityTypes – the data types to add to the provided subgraph * @returns {OntologyTypeVertexId[]} – the vertex IDs of the entity type vertices that were added */ export declare const addEntityTypeVerticesToSubgraphByMutation: (subgraph: Subgraph, entityTypes: EntityTypeWithMetadata[]) => OntologyTypeVertexId[]; /** * Looking to build a subgraph? You probably want {@link buildSubgraph} from `@blockprotocol/graph/stdlib` * * This MUTATES the given {@link Subgraph} by adding a given list of entities to the vertices. * Mutating a Subgraph is unsafe in most situations – you should know why you need to do it. * * @param {Subgraph} subgraph – the subgraph to mutate by adding the provided entities * @param {Entity[]} entities – the entities to add to the provided subgraph * @returns {EntityVertexId[]} – the vertex IDs of the added entities */ export declare const addEntityVerticesToSubgraphByMutation: (subgraph: Subgraph, entities: Entity[]) => EntityVertexId[];