function getColumnFormats(data, valueCol, dateCol, valueFmt, dateFmt) {
	// Get column summary:
	const columnSummary = getColumnSummary(data);

	if (columnSummary[dateCol].type !== 'date') {
		throw Error('dateCol must be of type date');
	}

	// Get formats:
	const valueFormat = columnSummary[valueCol].format;
	const dateFormat = columnSummary[dateCol].format;

	// Set column formats
	const value_format_object = valueFmt ? getFormatObjectFromString(valueFmt) : valueFormat;
	const date_format_object = dateFmt ? getFormatObjectFromString(dateFmt) : dateFormat;

	return { value_format_object, date_format_object };
}
@param {import("@evidence-dev/sdk/usql).Query | unknown[]} data
@param {string} valueCol
@param {string} dateCol
@returns {value_format_object: object, date_format_object: object}