import type { Constructor } from '@cratis/fundamentals'; import type { GraphModel } from './GraphModel.js'; import type { IGraphEdgeBuilder } from './IGraphEdgeBuilder.js'; import type { IGraphNodeBuilder } from './IGraphNodeBuilder.js'; import type { IGraphProjection } from './IGraphProjection.js'; import type { IGraphProjectionBuilder } from './IGraphProjectionBuilder.js'; /** * Implements {@link IGraphProjectionBuilder}, collecting the nodes and edges a graph projection defines. */ export declare class GraphProjectionBuilder implements IGraphProjectionBuilder { private readonly _nodes; private readonly _edges; /** @inheritdoc */ node(nodeType: Constructor, configure: (builder: IGraphNodeBuilder) => void): IGraphProjectionBuilder; /** @inheritdoc */ edge(edgeType: Constructor, sourceType: Function, targetType: Function, configure: (builder: IGraphEdgeBuilder) => void): IGraphProjectionBuilder; /** * Builds the {@link GraphModel} of a graph projection. * @param name - The name of the graph. * @param projection - The graph projection to define the model with. * @returns The model. */ build(name: string, projection: IGraphProjection): GraphModel; } //# sourceMappingURL=GraphProjectionBuilder.d.ts.map