import type { Cs2LegacyCityManifest } from './types'; export declare const LEGACY_TREE_STRIDE = 5; export interface Cs2LegacyTrees { /** Derived from the bin's byte length, NOT from `trees.count`. */ count: number; /** Stride 5: x, y, z, yaw, speciesIndex. Z mirrored; the rotation is a scalar yaw in the three.js frame. */ data: Float32Array; speciesNames: string[]; /** The manifest's own claim, kept for comparison; a mismatch is the documented junk-triangle bug. */ declaredCount: number; } export interface Cs2LegacyCity { manifest: Cs2LegacyCityManifest; dir: string; trees: Cs2LegacyTrees; } export interface Cs2LegacyTree { index: number; x: number; y: number; z: number; yaw: number; speciesIndex: number; species: string; } /** Reads `legacy/city/`. This file is the only source of tree placements; buildings come from `placements/`. */ export declare function readCs2LegacyCity(root: string): Promise; export declare function treeAt(trees: Cs2LegacyTrees, index: number): Cs2LegacyTree; export declare function iterateTrees(trees: Cs2LegacyTrees): Generator;