import type { OrderWithTotals } from '../types';
import type { SpreadsheetWrapper } from 'ts-spreadsheets';

export declare interface ExportedOrder {
  'Order ID': number
  'Customer': string
  'Date': string
  'Total': number
  'Status': string
  'Items': string
}
export declare function exportOrders(format: 'csv' | 'excel'): Promise<SpreadsheetWrapper>;
declare function fetchAllWithDetails(): Promise<OrderWithTotals[] | []>;
declare function prepareOrdersForExport(orders: OrderWithTotals[]): void;
export declare function downloadOrders(format: 'csv' | 'excel', filename?: string): Promise<Response>;
export declare function storeOrdersExport(format: 'csv' | 'excel', path?: string): Promise<void>;