pub fn ref_format_name(format: RefFormat) -> &'static str
What: The wire spelling of a ref format. Why: Shared by encoding and its tests.
In TS you’d write (pseudocode):
refFormat