export declare const BARCODE_PARSING_RULES_MODEL_KEY = "em_barcode_parsing_rules";
export declare enum ConfigFields {
    /** 物料编码 */
    materialCode = "materialCode",
    /** 批号 */
    lot = "lot",
    /** 数量 */
    qty = "qty",
    /** 有效期 */
    expiration = "expiration",
    /** 设备编码 */
    deviceCode = "deviceCode",
    /** 其他 */
    other = "other"
}
export interface ParseRuleFieldItem {
    key: string;
    type: ConfigFields;
    alias?: string;
    format?: string;
}
export interface ParseRuleConfig {
    separator: string;
    nullSymbol?: string;
    list?: ConfigFields[];
    fieldList: ParseRuleFieldItem[];
}
export declare function getBarcodeFieldLabel(field: ParseRuleFieldItem): string;
export declare function handleOldParseRuleConfig(config: ParseRuleConfig): ParseRuleConfig;
export type RuleParseData = Record<string, string | number | null | undefined>;
/** 按解析规则配置解析条码字符串 */
export declare function getParseRuleValue(labelStr: string, ruleConfig: ParseRuleConfig): RuleParseData;
export declare function getParseRuleConfig(id: string): Promise<ParseRuleConfig | undefined>;
