import type { Database } from "@prodobit/database"; import type { CreateAssetStatusHistoryRequest, UpdateAssetStatusRequest, AssetStatusHistoryQuery } from "@prodobit/types"; export declare class AssetStatusHistoryService { private db; constructor(db: Database); /** * Record a status change (internal use) */ recordStatusChange(data: CreateAssetStatusHistoryRequest, tenantId: string, changedById?: string): Promise; /** * Update asset status with history tracking */ updateAssetStatus(assetId: string, tenantId: string, data: UpdateAssetStatusRequest, changedById?: string): Promise<{ asset: any; history: any; }>; /** * Get status history for an asset */ getAssetStatusHistory(tenantId: string, filters?: AssetStatusHistoryQuery): Promise; /** * Get status history by ID */ getStatusHistoryById(historyId: string, tenantId: string): Promise; /** * Get history for a specific asset */ getHistoryByAsset(assetId: string, tenantId: string): Promise; /** * Update duration of previous status entry */ private updatePreviousStatusDuration; /** * Get lifecycle summary for an asset */ getAssetLifecycleSummary(assetId: string, tenantId: string): Promise<{ assetId: string; currentStatus: string; totalStatusChanges: number; statusDurations: Array<{ status: string; totalDurationMinutes: number; occurrenceCount: number; }>; recentChanges: any[]; firstRecordedAt: string | null; lastChangedAt: string | null; }>; /** * Get assets currently in a specific status */ getAssetsByStatus(status: string, tenantId: string): Promise; } //# sourceMappingURL=AssetStatusHistoryService.d.ts.map