/** * options for serializing data * * @privateRemarks * essentially a placeholder for options; we only have one at the moment. * * note that the underlying cells container has its own set of options. we * are explicitly not using that so we can add things that are beyond that * scope. * * still, we might just wrap that object [FIXME/TODO]. */ export interface SerializeOptions { /** optimize for size */ optimize?: 'size' | 'speed'; /** include the rendered/calculated value in export */ rendered_values?: boolean; /** * preserve cell type * @internal */ preserve_type?: boolean; /** * expand arrays so cells have individual values * @internal */ expand_arrays?: boolean; /** translate colors to xlsx-friendly values */ export_colors?: boolean; /** export cells that have no value, but have a border or background color */ decorated_cells?: boolean; /** prune unused rows/columns */ shrink?: boolean; /** * include tables. tables will be serialized in the model, so we can * drop them from cells. but you can leave them in if that's useful. */ tables?: boolean; /** share resources (images, for now) to prevent writing data URIs more than once */ share_resources?: boolean; /** * if a function has an export() handler, call that */ export_functions?: boolean; /** * @internal */ apply_row_pattern?: boolean; }