import type { AddBodyOptions } from "../physics/physicsWorld.js"; import type { ConnectorVec3 } from "./connectors.js"; export interface SupportPiece { id: string; grounded?: boolean; position?: ConnectorVec3; halfExtents?: ConnectorVec3; mass?: number; } export interface SupportLink { a: string; b: string; } export interface SupportConfig { maxDistance?: number; } export interface SupportResult { supported: readonly string[]; unsupported: readonly string[]; distance: Readonly>; } export declare function solveSupport(pieces: readonly SupportPiece[], links: readonly SupportLink[], config?: SupportConfig): SupportResult; export interface DebrisOptions { scatter?: number; seed?: number; } export declare function toDebrisBodies(pieces: readonly SupportPiece[], collapsedIds: readonly string[], options?: DebrisOptions): AddBodyOptions[];