import { decodeVersion } from './decode_version' ; /**
 * Helper for decoding version to request params that are driven
 * by the version info
 */ export function decodeRequestVersion ( version ? ) { const decoded = decodeVersion ( version ) ; return { if_seq_no : decoded . _seq_no , if_primary_term : decoded . _primary_term , } ; }