import { type CitySourceValidationReport } from '../../source'; import { type AreaStats } from './areas'; import { type BuildingStats } from './buildings'; import { type FrameOptions } from './frame'; import { type RefusalEntry } from './refusals'; import { type RoadStats } from './roads'; import { type TerrainMode, type TerrainStats } from './terrain'; import { type TreeStats } from './trees'; import { type WaterStats } from './water'; export declare const CS2_IMPORTER_VERSION = 1; export interface ImportCs2Options extends FrameOptions { out: string; id?: string; terrain?: TerrainMode; trees?: boolean; preview?: boolean; previewSize?: number; /** Write into a folder that already holds a city source. */ force?: boolean; log?: (message: string) => void; } export interface ImportCs2Result { outDir: string; manifestSha256: string; id: string; counts: { roadNodes: number; roadEdges: number; buildings: number; buildingsWithMesh: number; areas: number; water: number; pois: number; }; stats: { roads: RoadStats | null; buildings: BuildingStats | null; areas: AreaStats | null; water: WaterStats | null; trees: TreeStats | null; terrain: TerrainStats; }; refused: RefusalEntry[]; degraded: RefusalEntry[]; skipped: string[]; validation: CitySourceValidationReport | { ok: boolean; errors: number; warnings: number; totals: Record; }; timingsMs: Record; files: Array<{ path: string; bytes: number; }>; totalBytes: number; previewPath: string | null; } export declare function importCs2City(bundleArg: string, options: ImportCs2Options): Promise; export declare function formatCs2ImportReport(result: ImportCs2Result): string;