import type { KnowledgeGraphOutwardEdge } from "./variants/knowledge.js"; import type { OntologyOutwardEdge } from "./variants/ontology.js"; import type { EntityId, LimitedTemporalBound, TemporalBound, TemporalInterval, Timestamp } from "@blockprotocol/type-system"; /** * A simple tuple type which identifies an {@link Entity} by its {@link EntityId}, at a given {@link Timestamp}. * * When using this to query a {@link Subgraph}, along its variable axis, this should identify a single unique revision * of an {@link Entity} or possibly refer to nothing. */ export type EntityIdWithTimestamp = { baseId: EntityId; timestamp: Timestamp; }; /** * A simple tuple type which identifies an {@link Entity} by its {@link EntityId}, over a given {@link TimeInterval}. * * When using this to query a {@link Subgraph}, along its variable axis, this could return any number of revisions * of an {@link Entity} (including possibly returning none). */ export type EntityIdWithInterval = { entityId: EntityId; interval: TemporalInterval; }; export type OutwardEdge = OntologyOutwardEdge | KnowledgeGraphOutwardEdge; export declare const isOntologyOutwardEdge: (edge: OutwardEdge) => edge is OntologyOutwardEdge; export declare const isKnowledgeGraphOutwardEdge: (edge: OutwardEdge) => edge is KnowledgeGraphOutwardEdge;