type Json = Record; type Engine = any; export declare const RUNTIME_RANGE = "^0.3"; /** The runtime bundle URL the live web runtime loads for `range`. */ export declare function runtimeBundleUrl(apiUrl: string, range?: string): string; /** Point the bundle's bare imports (three, rapier, and three's `import.meta.resolve`) at this CLI's own copies. */ export declare function rewriteBundleImports(source: string, threeUrl: string, rapierUrl: string): string; /** Download (and cache by content) the live runtime bundle, then import it in this process. */ export declare function loadDriveEngine(apiUrl: string, opts?: { range?: string; cacheDir?: string; fetchImpl?: typeof fetch; }): Promise; /** Pedal for the part-pedal stop: ~0.6 g on a stock sports car, below tyre lock, so brake TORQUE sets the distance. */ export declare const PART_PEDAL = 0.3; export interface DriveFigures { zeroToHundredKphS: number; zeroToSixtyMphS: number; topSpeedKph: number; quarterMileS: number; lateralG: number; rollDegSkidpad: number; brakeSixtyToZeroM: number; brakePartPedalM: number; handbrakeMeanG: number; } /** Fold ONE part's ops onto the package's base tree with the engine's own resolver. */ export declare function foldPart(hc: Engine, pkg: Json, ops: Json[], slotType: string): { tuning: Json; warnings: string[]; }; export declare function measureDrive(hc: Engine, pkg: Json, ops: Json[], slotType: string): Promise; /** [figure, label, minimum % that counts as moved (above the instrument's noise), better: -1 lower / +1 higher / 0 n/a] */ export declare const FIGURES: Readonly>; /** Which figures an op on this path can move. A path absent here is judged on every figure, and only warned about. */ export declare const RELEVANT: ReadonlyArray; export interface FigureDelta { id: string; figure: string; base: number; after: number; pct: number; moved: boolean; worse: boolean; } export declare const fmtDelta: (d: FigureDelta) => string; export interface DriveFinding { level: 'error' | 'warn' | 'info'; code: string; message: string; } export interface DriveEffect { engineVersion: string | null; judged: FigureDelta[]; moved: FigureDelta[]; perOp: Array<{ op: string; deltas: FigureDelta[]; }>; findings: DriveFinding[]; } /** Measure the stock car, the car with the whole part, and (for a multi-op part) each op alone; judge the result. */ export declare function judgeDriveEffect(hc: Engine, pkg: Json, ops: Json[], slotType: string): Promise; export {};