import { Repository } from 'typeorm'; import { Customer } from './entities/customer.entity'; import { Fiado } from './entities/fiado.entity'; import { FiadoPayment } from './entities/fiado-payment.entity'; import { CreateCustomerDto, UpdateCustomerDto, CreateFiadoDto, PayFiadoDto } from './dto/customer.dto'; export declare class CustomersService { private readonly customerRepo; private readonly fiadoRepo; private readonly fiadoPaymentRepo; constructor(customerRepo: Repository, fiadoRepo: Repository, fiadoPaymentRepo: Repository); findAll(tenantId: string): Promise; findOne(tenantId: string, id: string): Promise; findByPhone(tenantId: string, phone: string): Promise; create(tenantId: string, dto: CreateCustomerDto): Promise; update(tenantId: string, id: string, dto: UpdateCustomerDto): Promise; toggleActive(tenantId: string, id: string): Promise; getWithFiados(tenantId: string): Promise; createFiado(tenantId: string, dto: CreateFiadoDto): Promise; getFiados(tenantId: string, customerId?: string): Promise; getPendingFiados(tenantId: string): Promise; payFiado(tenantId: string, fiadoId: string, dto: PayFiadoDto, userId?: string): Promise; cancelFiado(tenantId: string, fiadoId: string): Promise; getCustomerStats(tenantId: string, customerId: string): Promise<{ customer: Customer; stats: { totalPurchases: number; purchaseCount: number; fiadoBalance: number; fiadoLimit: number; fiadoAvailable: number; pendingFiados: number; }; }>; }