/** * @license * Copyright 2023 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import type { InputValues, Kit, MutableGraph, NodeHandler, NodeHandlerContext, NodeHandlerObject, NodeHandlers, NodeTypeIdentifier, OutputValues } from "@breadboard-ai/types"; export declare const callHandler: (handler: NodeHandler, inputs: InputValues, context: NodeHandlerContext) => Promise; export declare const handlersFromKits: (kits: Kit[]) => NodeHandlers; /** * The single entry point for getting a handler for a node type. * The handler can be one of the two types: * - A graph-based handler, where the `type` is actually a * URL-like string that points to a graph. * - A kit-based handler, where the `type` is a string that * corresponds to a node type in a kit. * * The function throws an error if no handler is found for the * given node type. * * @param type -- The node type to get a handler for. * @param context -- The context in which the handler is * being requested. * @returns -- The handler for the node type. */ export declare function getHandler(type: NodeTypeIdentifier, context: NodeHandlerContext): Promise; export declare function getGraphHandlerFromMutableGraph(type: NodeTypeIdentifier, mutable: MutableGraph): Promise; export declare function getGraphHandler(type: NodeTypeIdentifier, context: NodeHandlerContext): Promise; //# sourceMappingURL=handler.d.ts.map