function peekTypeHint(bufferReader, name) {
  const cc = bufferReader.peekByte();
  if (cc >= ZERO && cc <= NINE) {
    return 'number-prefix';
  }
  if (cc === TRUE || cc === FALSE) {
    return 'boolean';
  }
  if (cc === FLOAT64) {
    return 'float64';
  }
  if (cc === LIST_START) {
    return 'list';
  }
  if (cc === SET_START) {
    return 'set';
  }
  if (cc === DICT_START) {
    return 'dictionary';
  }
  if (cc === RECORD_START) {
    return 'record';
  }
  const index = bufferReader.index;
  throw Error(
    `Unexpected character ${quote(toChar(cc))}, at index ${index} of ${name}`,
  );
}
@param {BufferReader} bufferReader
@param {string} name
@returns {TypeHintTypes}