import { Repository } from 'typeorm'; import { Sale } from './entities/sale.entity'; import { SaleItem } from './entities/sale-item.entity'; import { Product } from '../products/entities/product.entity'; import { Tenant } from '../auth/entities/tenant.entity'; import { CreateSaleDto, CancelSaleDto, SalesFilterDto } from './dto/sale.dto'; export interface TodaySummary { totalSales: number; totalRevenue: number; totalTax: number; avgTicket: number; } export declare class SalesService { private readonly saleRepository; private readonly saleItemRepository; private readonly productRepository; private readonly tenantRepository; constructor(saleRepository: Repository, saleItemRepository: Repository, productRepository: Repository, tenantRepository: Repository); findAll(tenantId: string, filters: SalesFilterDto): Promise; findOne(tenantId: string, id: string): Promise; findByTicketNumber(tenantId: string, ticketNumber: string): Promise; create(tenantId: string, dto: CreateSaleDto): Promise; cancel(tenantId: string, id: string, dto: CancelSaleDto): Promise; getTodaySummary(tenantId: string): Promise; getRecentSales(tenantId: string, limit?: number): Promise; }