export declare function getDbDir(): string; export declare function getDbPath(): string; /** Rounds `value` to `decimals` decimal places. Shared by src/scaling.ts (per-field label * rounding) and src/serving-parse.ts (derived-weight rounding). */ export declare function roundTo(value: number, decimals: number): number; export declare function log(msg: string, err?: unknown): void; /** * Normalize a barcode to 13-digit EAN-13. * If 12 digits (UPC-A), zero-pad to 13. * Returns null if the barcode is not 12 or 13 digits. */ export declare function normalizeBarcode(barcode: string): string | null;