/** `f` is the page's rendered-frame count when the sample was read (frameClock.ts); absent in a page without the clock. */ export type DriveAliveSample = { t: number; fwd: number; p: [number, number]; w: Array; nonFinite: string[]; f?: number; }; export type DriveAudio = { /** AudioContexts the World made (state + currentTime) when throttle began and when it ended. */ before: Array<{ state: string; time: number; }>; after: Array<{ state: string; time: number; }>; /** Non-finite values written to an AudioParam during the drive (count and the first few). */ nonFiniteWrites: number; nonFiniteExamples: Array<{ method: string; value: string; }>; /** `portableVehicleEvidence().vehicles[0].audio.issues[].reason` — `no-audio-host` means the car had no voice at all. */ issues: string[]; /** Composed `sound` rows (add-ons' audio deltas) the car carried during the drive, `[:slot]`. */ fittedSoundRows?: string[]; /** AudioParam writes during the throttle window: a running vehicle voice writes its gains/rates every frame. */ paramWrites?: number; }; export type DriveAliveFacts = { throttleSeconds: number; samples: DriveAliveSample[]; audio: DriveAudio; pageErrors: string[]; }; export declare const DRIVE_ALIVE: { /** Under throttle the car must reach at least this forward speed (every car on the platform clears it within a second). */ readonly minPeakSpeedMps: 0.5; /** ... or travel at least this far (a heavy car that creeps still moves). */ readonly minTravelM: 0.25; /** Identical consecutive state for this long, with throttle held, is a frozen simulation ... */ readonly frozenSeconds: 0.8; /** ... provided the page RENDERED at least this many frames meanwhile. The hosted GPU runner's frames stall for a second or more now and * then (the page answers, the World does not advance): an identical state across a stall with no frames is a stalled page, not a frozen * vehicle (F355 1.0.25: "froze for 1.02 s" and then drove 8.1 m). A vehicle whose frame loop threw (the R34 NaN) is still caught: the * page keeps rendering frames while its state stays identical. 30 frames is half a second at 60 fps. */ readonly frozenMinFrames: 30; /** Throttle must have been held at least this long for the verdict to mean anything. */ readonly minThrottleSeconds: 0.8; }; /** Paths of every non-finite number in a plain object (bounded depth), e.g. `position.x=NaN`. */ export declare function nonFinitePaths(value: unknown, prefix?: string, depth?: number, out?: string[]): string[]; export type DriveAliveVerdict = { pass: boolean; detail: string; harnessError: string | null; measured: Record; }; export declare function judgeDriveAlive(f: DriveAliveFacts, t?: typeof DRIVE_ALIVE): DriveAliveVerdict;