import type { Vec3 } from 'mathcat'; import { type NavMesh, type NodeRef, type QueryFilter } from 'navcat'; export type LocalBoundarySegment = { /** Segment start/end [x1, y1, z1, x2, y2, z2] */ s: [number, number, number, number, number, number]; /** Distance for pruning */ d: number; }; /** * Local boundary data for avoiding collisions with nearby walls. */ export type LocalBoundary = { center: Vec3; segments: LocalBoundarySegment[]; polys: NodeRef[]; }; /** * Creates a new local boundary instance. */ export declare const create: () => LocalBoundary; /** * Resets the boundary data. */ export declare const resetLocalBoundary: (boundary: LocalBoundary) => void; /** * Updates the local boundary data around the given position. * @param boundary The local boundary to update * @param nodeRef Current polygon reference * @param position Current position * @param collisionQueryRange Query range for finding nearby walls * @param navMesh Navigation mesh * @param filter Query filter */ export declare const updateLocalBoundary: (boundary: LocalBoundary, nodeRef: NodeRef, position: Vec3, collisionQueryRange: number, navMesh: NavMesh, filter: QueryFilter) => void; /** * Checks if the boundary data is still valid. * @param boundary The local boundary to check * @param navMesh Navigation mesh * @param filter Query filter * @returns True if valid */ export declare const isLocalBoundaryValid: (boundary: LocalBoundary, navMesh: NavMesh, filter: QueryFilter) => boolean;