import type { Media } from "@osdk/api";
export interface SheetData {
	/** Sheet name */
	name: string;
	/** Rows of cell values as strings */
	rows: readonly (readonly string[])[];
}
export interface ParsedSpreadsheet {
	/** All sheets in the workbook */
	sheets: readonly SheetData[];
}
export interface BaseExcelViewerProps {
	/** Parsed spreadsheet data */
	spreadsheet: ParsedSpreadsheet;
	/** Additional CSS class name for the root element
	* @default undefined */
	className?: string;
}
export interface ExcelViewerMediaProps extends Omit<BaseExcelViewerProps, "spreadsheet"> {
	/** The Media object to fetch Excel contents from */
	media: Media;
}
