import { type XlsxCfRule } from './conditional-format.js'; export interface XlsxFormula { formula: string; value?: string | number | boolean | Date | null; } export type CellValue = string | number | boolean | Date | null | undefined | XlsxFormula; export declare const DEFAULT_STYLE = 0; export type StyleId = number; export interface SheetColumn { header: string; width?: number; style?: StyleId; } export declare function escapeXml(value: string): string; export declare function columnLetter(index: number): string; export declare function cellRef(row: number, column: number): string; export declare function toSerialDate(date: Date): number; export interface SheetOptions { columns: SheetColumn[]; rows: CellValue[][]; freezeHeader?: boolean; autoFilter?: boolean; headerStyle?: StyleId; datetimeStyle?: StyleId; cellStyle?: (row: number, column: number) => StyleId | undefined; conditionalFormats?: XlsxCfRule[]; } export declare function sheetChunks(options: SheetOptions): Generator; export declare function sheetXml(options: SheetOptions): string;