import { FIELD_TYPE } from '../../../../domain/field/field-type';
import { ParseRules } from '../../../../suites/shared/panel/config/editor/qrcode-parse-editor/types';
export type DeviceScanFieldInfo = {
    key: string;
    modelKey: string;
    bindInfo?: string;
    type?: FIELD_TYPE;
};
export type DeviceScanSubmitParams = {
    rawText: string;
    runtimeValuePath: string;
    parseRules?: ParseRules;
    fieldInfo: DeviceScanFieldInfo | null;
};
export type DeviceScanSubmitResult = {
    ok: true;
    payload: Record<string, any>;
    record: any;
} | {
    ok: false;
    message: string;
};
/** 解析条码、校验设备编码、查询设备并生成写入 payload */
export declare function submitDeviceScan(params: DeviceScanSubmitParams): Promise<DeviceScanSubmitResult>;
export declare function showDeviceScanError(message: string): void;
