import { Edge, Node, RouteResult } from '../types'; import SdkBase from './SdkBase'; import { SdkConfiguration } from './SdkConfiguration'; export declare class RouteSdk extends SdkBase { /** * Instantiate the SDK. * @param {SdkConfiguration} config - The SDK configuration. */ constructor(config: SdkConfiguration); /** * Get edges from a node. * @param {string} graphGuid - Graph GUID. * @param {string} nodeGuid - Node GUID. * @param {AbortSignal} [cancellationToken] - Abort signal for cancellation. * @returns {Promise} - Edges. */ getEdgesFromNode(graphGuid: string, nodeGuid: string, cancellationToken?: AbortController): Promise; /** * Get edges to a node. * @param {string} graphGuid - Graph GUID. * @param {string} nodeGuid - Node GUID. * @param {AbortSignal} [cancellationToken] - Abort signal for cancellation. * @returns {Promise} - Edges. * @throws {Error | ApiErrorResponse} Rejects if the URL is invalid or if the request fails. */ getEdgesToNode(graphGuid: string, nodeGuid: string, cancellationToken?: AbortController): Promise; /** * Get edges from a given node to a given node. * @param {string} graphGuid - Graph GUID. * @param {string} fromNodeGuid - From node GUID. * @param {string} toNodeGuid - To node GUID. * @param {AbortSignal} [cancellationToken] - Abort signal for cancellation. * @returns {Promise} - Edges. * @throws {Error | ApiErrorResponse} Rejects if the URL is invalid or if the request fails. */ getEdgesBetween(graphGuid: string, fromNodeGuid: string, toNodeGuid: string, cancellationToken?: AbortController): Promise; /** * Get all edges to or from a node. * @param {string} graphGuid - Graph GUID. * @param {string} nodeGuid - Node GUID. * @param {AbortSignal} [cancellationToken] - Abort signal for cancellation. * @returns {Promise} - Edges. * @throws {Error | ApiErrorResponse} Rejects if the URL is invalid or if the request fails. */ getAllNodeEdges(graphGuid: string, nodeGuid: string, cancellationToken?: AbortController): Promise; /** * Get child nodes from a node. * @param {string} graphGuid - Graph GUID. * @param {string} nodeGuid - Node GUID. * @param {AbortSignal} [cancellationToken] - Abort signal for cancellation. * @returns {Promise} - Child nodes. * @throws {Error | ApiErrorResponse} Rejects if the URL is invalid or if the request fails. */ getChildrenFromNode(graphGuid: string, nodeGuid: string, cancellationToken?: AbortController): Promise; /** * Get parent nodes from a node. * @param {string} graphGuid - Graph GUID. * @param {string} nodeGuid - Node GUID. * @param {AbortSignal} [cancellationToken] - Abort signal for cancellation. * @returns {Promise} - Parent nodes. */ getParentsFromNode(graphGuid: string, nodeGuid: string, cancellationToken?: AbortController): Promise; /** * Get neighboring nodes from a node. * @param {string} graphGuid - Graph GUID. * @param {string} nodeGuid - Node GUID. * @param {AbortSignal} [cancellationToken] - Abort signal for cancellation. * @returns {Promise} - Neighboring nodes. */ getNodeNeighbors(graphGuid: string, nodeGuid: string, cancellationToken?: AbortController): Promise; /** * Get routes between two nodes. * @param {string} graphGuid - Graph GUID. * @param {string} fromNodeGuid - From node GUID. * @param {string} toNodeGuid - To node GUID. * @param {AbortSignal} [cancellationToken] - Abort signal for cancellation. * @returns {Promise} - Routes. */ getRoutes(graphGuid: string, fromNodeGuid: string, toNodeGuid: string, cancellationToken?: AbortController): Promise; }