import { CarbonBreakdown, CarbonBreakdownSorting, CarbonFootprint } from "./CommonProps"; export declare type BreakdownInformation = "share" | "pcf"; export declare type UnitConfiguration = { decimals?: number; unit?: string; autoSpaced?: boolean; }; export declare const DEFAULT_UNIT_CONFIG: { [key in BreakdownInformation]: UnitConfiguration; }; export declare function prettifyUnitValue(value: number, key: BreakdownInformation, locale?: string, configs?: CarbonBreakdownDetailsConfig["unitConfigs"]): string; export declare type CarbonBreakdownDetailsConfig = { showCaptions?: boolean; hideSumRow?: boolean; hidePills?: boolean; unitConfigs?: { [key in BreakdownInformation]?: UnitConfiguration; }; }; export declare type BreakdownPosition = "materials" | "manufacturing" | "materials_manufacturing" | "packaging" | "transport" | "travelling" | "PLACEHOLDER" | "other" | "estimate"; export declare const POSITION_ORDER: BreakdownPosition[]; export declare const UNCOMPENSATED_COLORS: { [key in BreakdownPosition]?: string; }; export declare const COMPENSATED_COLORS: { [key in BreakdownPosition]?: string; }; export declare type PrettifyCarbonBreakdownOptions = { sorting?: CarbonBreakdownSorting; }; export declare function prettifyCarbonBreakdown(source: CarbonBreakdown, totalFootprintInGrams: number, options?: PrettifyCarbonBreakdownOptions): import("./CommonProps").CarbonBreakdownValue[]; export declare type ApiWeightValue = { value: number; unit: "g" | "kg"; }; export declare type AccuracyScore = { value: number; }; export declare type ApiCarbonFootprintBase = { CO2Equivalent: ApiWeightValue; accuracy: AccuracyScore; }; export declare type ApiSimpleBreakdownFootprint = ApiCarbonFootprintBase & { __type: "simple_breakdown"; breakdown: Array<{ type: BreakdownPosition; percentage: number; CO2Equivalent: ApiWeightValue; }>; }; export declare type ApiSpendBasedFootprint = ApiCarbonFootprintBase & { __type: "spend_based"; }; export declare type PublicPcfData = { lastModified: string; carbonFootprint: ApiSimpleBreakdownFootprint | ApiSpendBasedFootprint; }; export declare function createCarbonFootprintFromPublicPcfData(data: PublicPcfData): CarbonFootprint; export declare function fetchPublicPcfData(baseUrl: string, shopId: string, shopProductId: string, test?: boolean): Promise;