/** * @license * Copyright 2024 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import type { EditOperationContext, EditTransform, EditTransformResult, GraphIdentifier, NodeIdentifier } from "@breadboard-ai/types"; export { SidewireToNewGraphTransform }; /** * Given a selection of nodes and a subwire configuration information, * creates a new subgraph from these nodes, then configures specified * node to point to that subgraph. */ declare class SidewireToNewGraphTransform implements EditTransform { /** * The id of the node on which to configure the subwire. */ readonly nodeId: NodeIdentifier; /** * The port name that will be used to configure the subwire. */ readonly sidewirePortName: string; /** * The graph id of the specified node ("" means main board). */ readonly sourceGraphId: GraphIdentifier; /** * The id of the graph that will be created from selected nodes. */ readonly newGraphId: GraphIdentifier; /** * The nodes that will be moved to new graph. */ readonly nodes: NodeIdentifier[]; /** * The title of the newly created graph. */ readonly title: string; /** * The description of the newly created graph. */ readonly description: string; constructor( /** * The id of the node on which to configure the subwire. */ nodeId: NodeIdentifier, /** * The port name that will be used to configure the subwire. */ sidewirePortName: string, /** * The graph id of the specified node ("" means main board). */ sourceGraphId: GraphIdentifier, /** * The id of the graph that will be created from selected nodes. */ newGraphId: GraphIdentifier, /** * The nodes that will be moved to new graph. */ nodes: NodeIdentifier[], /** * The title of the newly created graph. */ title: string, /** * The description of the newly created graph. */ description?: string); apply(context: EditOperationContext): Promise; } //# sourceMappingURL=sidewire-to-new-graph.d.ts.map