/** * IMPORTANT! * This file is still under construction and will change in the future. * Workers are not yet supported. * For more info visit: https://forum.babylonjs.com/t/replacing-recastjs-with-recast-navigation-js/56003/46 */ import { type NavMeshQuery, type NavMesh, type TileCache } from "@recast-navigation/core"; import { type Mesh } from "@babylonjs/core/Meshes/mesh.js"; import { type INavMeshParametersV2 } from "../types.js"; /** * Builds a NavMesh and NavMeshQuery from meshes using provided parameters. * @param meshes The array of meshes used to create the NavMesh. * @param parameters The parameters used to configure the NavMesh generation. * @param workerOptions Options for the worker, including a completion callback and the worker instance. * @throws Error if the NavMesh data is invalid or cannot be deserialized. */ export declare function GenerateNavMeshWithWorker(meshes: Array, parameters: INavMeshParametersV2, workerOptions: { /** * Completion callback that is called when the NavMesh generation is complete. * @param navMesh The generated NavMesh. * @param navMeshQuery The NavMeshQuery associated with the generated NavMesh. * @param tileCache Optional TileCache if tile cache generation was used. */ completion: (navMesh: NavMesh, navMeshQuery: NavMeshQuery, tileCache?: TileCache) => void; /** * Worker instance used for asynchronous NavMesh generation. */ worker: Worker; }): void;