import React from 'react';
import type { TareOption } from './types';
export interface TareQuickBarProps {
    options: TareOption[];
    selected?: string;
    /** metrics 未展开为单行时只展示名称，隐藏重量值 */
    compact: boolean;
    unitLabel: string;
    convertTareValue: (option: TareOption) => number;
    onSelect: (id: string) => void;
}
export declare function TareQuickBar({ options, selected, compact, unitLabel, convertTareValue, onSelect, }: TareQuickBarProps): JSX.Element;
interface TareManagementPanelProps {
    componentStyle: React.CSSProperties;
    tareOptions: TareOption[];
    selectedTare?: string;
    customTareIdSet: Set<string>;
    unitLabel: string;
    maxTareValue: number;
    /**
     * 将某个 tare 选项的原始值换算到系统称重单位（scaleUnit）下的展示值。
     * 由外部使用 `nativeScaleTools.convertWeight` 提供。
     */
    convertTareValue: (option: TareOption) => number;
    getText: (key: string, fallback: string) => string;
    onSelectTare: (tareId: string) => void;
    onDeleteCustomTare: (tareId: string) => void;
    onAddCustomTare: (params: {
        label: string;
        value: number;
    }) => boolean;
}
export declare function TareManagementPanel(props: TareManagementPanelProps): JSX.Element;
export {};
