import { type HelixSceneV2, type PlacementPrototype, type PlacementRecord } from '@hypersoniclabs/helix-manifest'; /** A base more than this far above or below the terrain counts as off the ground (a trunk 0.03 m in the ground is on it). */ export declare const GROUND_TOLERANCE_M = 0.3; /** `helix scene validate` refuses a package with more than this share of placements off the ground, and warns below it. */ export declare const GROUND_FAIL_SHARE = 0.005; export type GroundSampler = (x: number, z: number) => number; /** * A prototype whose instances stand where a source capture put them (helix-manifest 0.3.46 `support: 'captured'`: a car on a road * deck, a boat on the water), not on the terrain: the ground gate does not measure it and the snap does not move it. Read through a * cast so a CLI built against an older manifest's types still compiles; absent or unknown reads as terrain, the strict default. */ export declare function standsOnCapture(prototype: PlacementPrototype): boolean; /** The terrain AS DRAWN at its finest stride (the 4 m field, stride 1) from a terrain source folder: the highest LOD, after any carve. */ export declare function readGroundSampler(terrainDir: string): Promise; /** Y of the lowest point of the record: its origin plus the prototype's bounds floor at the record's scale (trees are yaw-only). */ export declare function recordBaseY(record: PlacementRecord, prototype: PlacementPrototype): number; export interface GroundContact { instances: number; /** Instances of `captured` prototypes: counted here, not measured and not in `instances`. */ captured: number; /** Bases more than GROUND_TOLERANCE_M above the ground. */ above: number; /** Bases more than GROUND_TOLERANCE_M below it. */ below: number; /** Largest signed offsets seen: metres above (positive) and below (negative) the ground. */ maxAbove: number; maxBelow: number; } export declare function emptyGroundContact(): GroundContact; /** Folds one record into `into` (instance count, off-ground counts, extremes). */ export declare function addGroundContact(into: GroundContact, record: PlacementRecord, prototype: PlacementPrototype, ground: GroundSampler, tolerance?: number): void; export type GroundVerdict = 'pass' | 'warn' | 'fail'; export declare function groundVerdict(contact: GroundContact): GroundVerdict; export interface ScenePlacementsGround extends GroundContact { verdict: GroundVerdict; /** off-ground share of all instances */ share: number; failShare: number; toleranceMetres: number; } /** `null` when the document has no fine placements; `{ skipped }` when its terrain or region files are not in `dir` to be read. */ export declare function measureScenePlacementsGround(scene: HelixSceneV2, dir: string): Promise; export declare function formatScenePlacementsGround(result: ScenePlacementsGround): string;