import { vec2 } from 'gl-matrix'; import { BodyInterface, WorldInterface, JointInterface, ConstraintInterface } from '../types'; export interface SpringDef { bodyA: Readonly; pivotA?: Readonly; bodyB: Readonly; pivotB?: Readonly; distance: number; stiffness?: number; extinction?: number; } export declare class SpringJoint implements JointInterface { readonly world: WorldInterface; readonly bodyA: Readonly; readonly pivotA: Readonly; readonly bodyB: Readonly; readonly pivotB: Readonly; readonly distance: number; readonly stiffness: number; readonly extinction: number; private readonly springConstraint; constructor(world: WorldInterface, bodyA: Readonly, pivotA: Readonly, bodyB: Readonly, pivotB: Readonly, distance: number, stiffness: number, extinction: number); [Symbol.iterator](): Iterator; }