import type { WeightSource } from "./types.js"; export interface ParsedServingWeight { weight_g: number; weight_source: Exclude; } /** * True when `name` names a food dense/light enough that Tier C's 1.0 g/mL assumption would be * meaningfully wrong (see DENSITY_SENSITIVE_RE above). Used to suppress Tier C derivation for * these foods — they fall back to the honest `per_100g` basis instead of a confidently wrong * per-serving number. */ export declare function isDensitySensitiveFood(name: string | null | undefined): boolean; /** * Derives a serving weight in grams from a free-text `serving_size` string, when the * `serving_weight_g` column is NULL. Returns null (never a guess) for anything that isn't * confidently parseable — e.g. "1 bottle", "1 can". See docs/CALLER-GUIDE.md for how callers * should weight `weight_source` on the result. */ export declare function parseServingWeight(servingSize: string | null | undefined): ParsedServingWeight | null;