import { History , VaultFormatID } from "../types" ; param historyArray returns private export function historyArrayToString ( historyArray ) { return historyArray . join ( "\n" ) ; } param historyString returns private export function historyStringToArray ( historyString , formatID ? ) { const hist = < History > historyString . split ( "\n" ) ; if ( formatID ) { hist . format = formatID ; } return hist ; }