import { o as ColumnDef } from "./types-Cqk1_BXq.js"; import { a as ExportViewEntry, s as ExportWriter } from "./exportWriter-VdWUamzf.js"; //#region src/export/xlsx.d.ts /** * Build an `.xlsx` for the given rows and columns. * * Cell values resolve exactly as they do for CSV — a column's `exportValue` * first, then its accessor or `sortValue` — so the same table produces the same * data in either format. What differs is that numbers, booleans and dates stay * typed, because a spreadsheet that cannot sum a column is a screenshot. * * @typeParam TRow - The row type. * @param options - Rows, columns, and the sheet's name. * @returns The workbook bytes, ready to download. */ declare function buildTableXlsx(options: { rows: readonly TRow[]; columns: readonly ColumnDef[]; sheetName?: string; view?: readonly ExportViewEntry[]; summary?: Readonly>>; }): Uint8Array; /** * The spreadsheet writer, for the `exportCsv` prop's `writer` option: * * ```tsx * import { xlsxWriter } from "@adapttable/core/xlsx"; * * * ``` * * Every scope works unchanged — page, all, selected, range, and any column * subset — because the scope is resolved before a writer is asked for anything. * * @param options - The sheet's name inside the workbook. Defaults to `"Sheet1"`. * @returns A writer to hand to `exportCsv`. */ declare function xlsxWriter(options?: { sheetName?: string; }): ExportWriter; //#endregion export { type ExportViewEntry, buildTableXlsx, xlsxWriter }; //# sourceMappingURL=xlsx.d.ts.map