import type { Database } from "@prodobit/database"; import { type Lot, type Stock, type StockTransaction, type StockTransactionSource, type LotSource, type NewLot, type NewStock, type NewStockTransaction, type NewStockTransactionSource, type NewLotSource } from "@prodobit/database"; export interface LotFilters { lotNumber?: string; locationId?: string; parentLotId?: string; search?: string; } export interface StockFilters { itemId?: string; lotId?: string; locationId?: string; status?: string; search?: string; } export interface StockTransactionFilters { stockId?: string; lotId?: string; itemId?: string; transactionType?: string; sourceLocationId?: string; destinationLocationId?: string; status?: string; createdBy?: string; dateFrom?: Date; dateTo?: Date; } export interface StockLevel { itemId: string; itemName: string; itemCode: string; locationId: string; locationName: string; totalQuantity: number; availableQuantity: number; reservedQuantity: number; lotCount: number; } export interface LotInfo { lotId: string; lotNumber: string; itemId: string; itemName: string; quantity: number; locationId: string; locationName: string; status: string; } export declare class StockService { private db; private tenantId; constructor(db: Database, tenantId: string); createLot(data: Omit): Promise; getLots(filters?: LotFilters): Promise; getLotById(lotId: string): Promise; updateLot(lotId: string, data: Partial): Promise; deleteLot(lotId: string): Promise; createStock(data: Omit): Promise; getStocks(filters?: StockFilters): Promise; getStockById(stockId: string): Promise; updateStock(stockId: string, data: Partial): Promise; deleteStock(stockId: string): Promise; createStockTransaction(data: Omit): Promise; getStockTransactions(filters?: StockTransactionFilters): Promise; getStockTransactionById(transactionId: string): Promise; updateStockTransaction(transactionId: string, data: Partial): Promise; completeStockTransaction(transactionId: string): Promise; cancelStockTransaction(transactionId: string): Promise; createTransactionSource(data: Omit): Promise; getTransactionSources(transactionId: string): Promise; createLotSource(data: Omit): Promise; getLotSources(lotId: string): Promise; getStockLevels(locationId?: string): Promise; getLotInfo(itemId?: string): Promise; getStockStats(): Promise<{ totalItems: number; totalLots: number; totalTransactions: number; stockValueByLocation: Record; stockByStatus: Record; transactionsByType: Record; }>; getStockItems(search?: string): Promise<{ id: string; name: string; code: string | null; itemType: string; isStockItem: boolean; isInventoryItem: boolean; status: string; }[]>; } //# sourceMappingURL=StockService.d.ts.map