import type { OntologyTypeVertexId, Subgraph } from "../../../types/subgraph.js"; import type { BaseUrl, DataTypeWithMetadata, VersionedUrl } from "@blockprotocol/type-system"; /** * Returns all `DataTypeWithMetadata`s within the vertices of the subgraph * * @param subgraph */ export declare const getDataTypes: (subgraph: Subgraph) => DataTypeWithMetadata[]; /** * Gets a `DataTypeWithMetadata` by its `VersionedUrl` from within the vertices of the subgraph. Returns `undefined` if * the data type couldn't be found. * * @param subgraph * @param dataTypeId * @throws if the vertex isn't a `DataTypeVertex` */ export declare const getDataTypeById: (subgraph: Subgraph, dataTypeId: VersionedUrl) => DataTypeWithMetadata | undefined; /** * Gets a `DataTypeWithMetadata` by its `OntologyTypeVertexId` from within the vertices of the subgraph. Returns * `undefined` if the data type couldn't be found. * * @param subgraph * @param vertexId * @throws if the vertex isn't a `DataTypeVertex` */ export declare const getDataTypeByVertexId: (subgraph: Subgraph, vertexId: OntologyTypeVertexId) => DataTypeWithMetadata | undefined; /** * Returns all `DataTypeWithMetadata`s within the vertices of the subgraph that match a given `BaseUrl` * * @param subgraph * @param baseUrl */ export declare const getDataTypesByBaseUrl: (subgraph: Subgraph, baseUrl: BaseUrl) => DataTypeWithMetadata[];