import type { GraphEdgeModel } from './GraphEdgeModel.js'; import type { GraphNodeModel } from './GraphNodeModel.js'; /** * Reads nodes and edges from the decorators on their types. */ export declare class ModelBoundGraphReader { /** * Gets the name of the graph a node or an edge belongs to. * @param type - The node or edge type. * @returns The name of the graph. * @throws {GraphNameRequired} When the type does not name its graph. */ static graphNameOf(type: Function): string; /** * Read a node. * @param type - The node type. * @returns The {@link GraphNodeModel}. * @throws {NodeMustHaveExactlyOneKey} When the type does not have exactly one member with the graphKey decorator. */ readNode(type: Function): GraphNodeModel; /** * Read an edge. * @param type - The edge type. * @returns The {@link GraphEdgeModel}. * @throws {EdgeMustHaveOneSourceAndOneTarget} When the type does not name exactly one source and one target. * @throws {EdgeCanHaveOnlyOneIdentifyingKey} When the type has more than one member with the graphKey decorator. */ readEdge(type: Function): GraphEdgeModel; } //# sourceMappingURL=ModelBoundGraphReader.d.ts.map