import * as PF from 'pathfinding'; /** * A* path-finder. Based upon https://github.com/bgrins/javascript-astar * @constructor * @param {Object} opt * @param {boolean} opt.allowDiagonal Whether diagonal movement is allowed. * Deprecated, use diagonalMovement instead. * @param {boolean} opt.dontCrossCorners Disallow diagonal movement touching * block corners. Deprecated, use diagonalMovement instead. * @param {DiagonalMovement} opt.diagonalMovement Allowed diagonal movement. * @param {function} opt.heuristic Heuristic function to estimate the distance * (defaults to manhattan). * @param {number} opt.weight Weight to apply to the heuristic to allow for * suboptimal paths, in order to speed up the search. * @param {number} opt.avoidStarcasing Add penalties to discourage turning and * causing a 'staircase' effect (defaults to false). * @param {number} opt.turnPenalty Penalty to add to turning. Higher numbers * discourage turning more (defaults to 1). */ export declare class AStarFinder { private allowDiagonal; private dontCrossCorners; private diagonalMovement; private heuristic; private avoidStaircase; private turnPenalty; private weight; constructor(opt: any); findPath(startX: number, startY: number, endX: number, endY: number, grid: PF.Grid): any; }