API reference: @salmonui/core/export-model
runExportfunction
import { runExport } from '@salmonui/core/export-model';function runExport<Row, Data>(format: ExportFormat, source: ExportSource<Row> | readonly ExportSource<Row>[], options: ExportOptions<Row> | undefined, handlers: ExportHandlers<Row, Data>, extension: string, mimeType: string, write: (models: readonly ExportModel<Row>[]) => Promise<Data>): Promise<ExportFile<Data> | null>;
Runs one export: onBeforeExport, the model from the source and options,
the writer, then onExport. Resolves to null when prevented.