/** * @license * Copyright 2024 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import type { Edge as EdgeDescriptor, EdgeMetadata, GraphIdentifier, InspectableEdge, InspectablePort, MutableGraph, ValidateResult } from "@breadboard-ai/types"; import { InspectableEdgeType } from "@breadboard-ai/types"; export { Edge }; /** * This helper is necessary because both "*" and "" are valid representations * of a wildcard edge tail. This function ensures that the edge is always * consistent. * @param edge -- the edge to fix up * @returns */ export declare const fixUpStarEdge: (edge: EdgeDescriptor) => EdgeDescriptor; /** * This is inverse of the helper above, necessary when working with * instances of `InspectableEdge` directly, since they will show "*" on both * sides of the edge. * @param edge -- the edge to un-fix up * @returns */ export declare const unfixUpStarEdge: (edge: EdgeDescriptor) => EdgeDescriptor; export declare const fixupConstantEdge: (edge: EdgeDescriptor) => EdgeDescriptor; declare class Edge implements InspectableEdge { #private; constructor(mutable: MutableGraph, edge: EdgeDescriptor, graphId: GraphIdentifier); raw(): EdgeDescriptor; get from(): import("@breadboard-ai/types").InspectableNode; get out(): string; get to(): import("@breadboard-ai/types").InspectableNode; get in(): string; get type(): InspectableEdgeType; metadata(): EdgeMetadata | undefined; outPort(): Promise; inPort(): Promise; validate(): Promise; setDeleted(): void; deleted(): boolean; } //# sourceMappingURL=edge.d.ts.map