import type { EngineConfig } from '../../common/Engine' ; param config returns export function getClientVersion ( config ) { const [ version , suffix ] = config . clientVersion ?. split ( '-' ) ?? [ ] ; if ( ! suffix && /^[1-9][0-9]*\.[0-9]+\.[0-9]+$/ . test ( version ) ) { return version ; } return '3.4.1' ; }