/** * The check that exists because of C-11 (FR-50). * * Pi reads six numbers of an assistant message's `usage` object without a guard — * `usage.input`, `usage.output`, `usage.cacheRead`, `usage.cacheWrite`, * `usage.totalTokens` and `usage.cost.total`. A missing `usage` stops Pi with * `TypeError: Cannot read properties of undefined (reading 'input')`, and it happens * after the file is already in the user's home. So the check runs before placement, * on the bytes, on every message, and it reports every defect it finds. * * Zero is a valid value. `Number.isFinite` is the test, never truthiness. */ import type { SerializedSession, ValidationDefect } from "./contract.js"; export declare function validateSerialized(serialized: SerializedSession): ValidationDefect[];