import type { Database } from "@prodobit/database"; import { type Bom, type BomComponent, type EngineeringChangeOrder, type NewBom, type NewBomComponent, type NewEngineeringChangeOrder } from "@prodobit/database"; export interface BomFilters { itemId?: string; status?: string; isCurrentVersion?: boolean; isPhantomBom?: boolean; manufacturingPolicy?: string; search?: string; } export interface BomComponentFilters { bomId?: string; componentType?: string; sourcingType?: string; isOptional?: boolean; isCritical?: boolean; } export interface EcoFilters { status?: string; changeType?: string; priority?: string; assignedTo?: string; requestedBy?: string; } export interface BomExplosionItem { componentId: string; itemId: string; itemName: string; quantity: number; unit: string; level: number; path: string; isPhantom: boolean; sourcingType: string; explodedFromPhantom: boolean; } export interface MrpRequirement { itemId: string; itemName: string; requiredQty: number; unit: string; requiredDate: Date; sourcingType: string; isPurchased: boolean; } export declare class BomService { private db; private tenantId; constructor(db: Database, tenantId: string); createBom(data: Omit): Promise; getBoms(filters?: BomFilters): Promise; getBomById(bomId: string): Promise; updateBom(bomId: string, data: Partial): Promise; deleteBom(bomId: string): Promise; createBomComponent(data: Omit): Promise; getBomComponents(filters?: BomComponentFilters): Promise; updateBomComponent(componentId: string, data: Partial): Promise; deleteBomComponent(componentId: string): Promise; createEco(data: Omit): Promise; getEcos(filters?: EcoFilters): Promise; updateEco(ecoId: string, data: Partial): Promise; approveEco(ecoId: string, approvedBy: string): Promise; rejectEco(ecoId: string, rejectedBy: string, rejectionReason: string): Promise; getBomExplosion(bomId: string, explodePhantoms?: boolean): Promise; getMrpRequirements(bomId: string, requiredQuantity: number, requiredDate: Date, sourcingFilter?: string): Promise; calculateEffectiveLeadTime(bomId: string): Promise; getBomStats(): Promise<{ totalBoms: number; activeBoms: number; phantomBoms: number; draftBoms: number; bomsByManufacturingPolicy: Record; bomsByComponentType: Record; }>; cloneBomWithNewVersion(bomId: string, newVersion: string, changedBy: string): Promise; } //# sourceMappingURL=BomService.d.ts.map