import Graph, {Attributes} from 'graphology-types'; import {MinimalEdgeMapper} from 'graphology-utils/getters'; type BidirectionalAstarResult = string[]; export function bidirectional< NodeAttributes extends Attributes = Attributes, EdgeAttributes extends Attributes = Attributes >( graph: Graph, source: unknown, target: unknown, getEdgeWeight?: | keyof EdgeAttributes | MinimalEdgeMapper, heuristic?: (node: string, target: string) => number, options?: { cutoff?: number; } ): BidirectionalAstarResult;