@fleet-frontend/mower-maps
Version:
a mower maps in google maps
21 lines • 879 B
TypeScript
import { PathData } from '../../../types/path';
import { RealTimePartitionType, RobotStatus } from '../../../types';
interface UsePathElementProps {
pathData: PathData;
mapConfig?: Record<string, unknown>;
mowPartitionData?: RealTimePartitionType | null;
currentMowingPartitionId: string;
processStateIsMowing: boolean;
}
interface UsePathElementReturn {
pathElementDates: any;
updatePathData: (pathData: PathData, mowPartitionData?: RealTimePartitionType) => void;
updatePathDataByMowingPosition: (position: {
x: number;
y: number;
vehicleState?: RobotStatus;
}) => void;
}
declare const usePathElement: ({ pathData, mapConfig, mowPartitionData, currentMowingPartitionId, processStateIsMowing, }: UsePathElementProps) => UsePathElementReturn;
export default usePathElement;
//# sourceMappingURL=usePathElement.d.ts.map