import type { FmUnitInputModel } from '@/components/FmUnitInputProps'; /** * Production stores the unit-of-record with every durable quantity. The shared * unit input represents the base-unit choice as `null`; Production cannot, * because a stored null would ask a future SKU definition to reinterpret an * old number. * * This local spelling is the rebase seam for PR 1's generated * `FdoProductionUnitSnapshot`. */ export interface ProductionRunUnitSnapshot extends FdoUnitMeasurement { baseUnitId: string; } export interface ProductionRunQuantityModel extends Omit { measurement: ProductionRunUnitSnapshot | null; } export declare function baseUnitSnapshot(unit: FdoInventoryUnit): ProductionRunUnitSnapshot; export declare function measurementSnapshot(unit: FdoInventoryUnit, measurement: FdoUnitMeasurement): ProductionRunUnitSnapshot; /** * Runtime guard for persisted retry intents. Storage outlives the build that * wrote it, so presence of `baseUnitId` alone is not enough: a malformed or * zero conversion would either crash hydration or change the movement on * resend. */ export declare function isProductionRunUnitSnapshot(value: unknown): value is ProductionRunUnitSnapshot; /** Same stored unit identity, allowing equivalent fixed-point spellings. */ export declare function productionRunUnitSnapshotsEqual(left: ProductionRunUnitSnapshot, right: ProductionRunUnitSnapshot): boolean; /** * A structurally valid snapshot must also belong to the frozen SKU unit it is * being used with. Matching the id without the conversion would reinterpret a * historical number after a unit is redefined under the same id. */ export declare function productionRunSnapshotMatchesUnit(snapshot: ProductionRunUnitSnapshot, unit: FdoInventoryUnit): boolean; /** * Resolve a durable Production snapshot against the current unit definition. * Missing or legacy generic measurements stay unresolved: inferring today's * base would silently reinterpret the stored number. */ export declare function storedProductionRunUnitSnapshot(stored: unknown, unit: FdoInventoryUnit): ProductionRunUnitSnapshot | null;