import { CodeSystemCode } from '@mesalvo/ts-definitions';
import { MinimalUnit } from '../../quantity-input/QuantityInput';
export type UnitSelectorProps<U extends {
    code: string;
} = MinimalUnit | CodeSystemCode> = {
    customOptions?: U[];
    unitSystemUrl: string;
    disabled?: boolean;
    readOnly?: boolean;
    onChange: (v: U | null) => void;
    value: U | null;
    defaultUnit?: U | null;
    inputBlur?: React.FocusEventHandler<HTMLInputElement>;
    inputFocus?: React.FocusEventHandler<HTMLInputElement>;
    filterOptions?: (option: U, inputValue: string) => boolean;
};
export declare function UnitSelector<U extends {
    [x: string]: string;
    code: string;
}>({ customOptions, unitSystemUrl, disabled, readOnly, onChange, value, defaultUnit, inputBlur, inputFocus, filterOptions, }: UnitSelectorProps<U>): import("react/jsx-runtime").JSX.Element;
export default UnitSelector;
//# sourceMappingURL=UnitSelector.d.ts.map