import type { Graphie } from "../util/graphie"; export type Coord = [number, number]; export type Line = [Coord, Coord]; export type Constraint = (this: { graphie: Graphie; }, current: Coord | boolean, previous: Coord, options: ConstraintCallbacks) => Coord | boolean | undefined; export type ConstraintCallbacks = { onSkipRemaining(): void; onOutOfBounds?: () => void; };