import type { Node } from './glyph.spec.js'; /** Generic compare function */ export type CompareFunction = (a: Node, b: Node) => number; /** * # Collision Tester * * Due to the nature of tile sizes keeping the quantity of nodes lower, * collisions storage is a non-issue. Thus, we can do very basic collision detection tests * and not worry about complexity. */ export default class CollisionTester { #private; nodes: Node[]; /** Clear all nodes for the next tile */ clear(): void; /** * Insert if and only if there are no collisions with prior nodes * If there is a collision, return true * @param node - the node to insert * @returns true if there is a collision with pre-existing nodes */ collides(node: Node): boolean; }