import type { FdoDecimal } from '@feedmepos/core/entity'; export type OpeningBalanceValues = { balance: FdoDecimal; totalCost: FdoDecimal; error: null; } | { balance: null; totalCost: null; error: string; }; /** * Converts an opening balance row's quantity and total cost to decimals. * * A unit average cost (e.g. from NetSuite) replaces the file's total cost and is * multiplied as decimals: as floats 0.1 * 3 is 0.30000000000000004, which has no * exact safe decimal. Invalid values return a row error instead of throwing. */ export declare function toOpeningBalanceValues(args: { quantity: string; fileTotalCost: string; unitAverageCost?: number; }): OpeningBalanceValues;