import { DecimalDisplayModeType } from '../../domain/constants/enum';
import { FIELD_TYPE } from '../../domain/field/field-type';
export declare function getValue(value: any, multiple: boolean): any;
export declare function setValue(value: any, valuePath: string, payload?: {
    multiple?: boolean;
    options?: any;
    valueKey?: string;
    labelKey?: string;
    needLabel?: boolean;
    row?: any;
}): {
    [x: string]: any;
};
export declare function toBoolean(value: any): boolean | null;
export declare function toFormatValue(fieldType: FIELD_TYPE, value: any): any;
export declare function toDictValue(field: string, value: any, row: any): any;
export declare function getSelectOptions(payload: any): {
    selectOptions: any;
    labels: any;
    labelJson: any;
};
export declare function getRdoSelectOptions(payload: any): {
    labels: any;
    labelJson: any;
};
/**
 * 补全日期时间
 * @param timeStr '2025-12-02 10:12:03' | '10:12:03'
 */
export declare function normalizeDateTime(timeStr: string): string;
/** 时间字段写入 DataManager 前补全为 HH:mm:ss */
export declare function completeTimeValue(timeStr: string): string;
export type TimePickerFormat = 'HH:mm:ss' | 'HH:mm' | 'HH';
export type DateTimeFieldFormatProps = {
    timeFormat?: TimePickerFormat;
    enableCustomFormat?: boolean;
    customFormat?: string;
    formatTemplate?: string;
    formatSeparator?: string;
};
/** 解析字段最终 dayjs 格式（含分隔符替换） */
export declare function resolveFinalFieldFormat(props: DateTimeFieldFormatProps): string;
/** 日期/日期时间字段写入 DataManager 的存储格式 */
export declare function resolveDateTimeStorageFormat(props: DateTimeFieldFormatProps, isDateTime: boolean): string;
/** 日期时间面板时间列 format（与 GctTimer 一致） */
export declare function resolveDateTimePickerTimeFormat(props: DateTimeFieldFormatProps): TimePickerFormat;
/** 日期时间字段写入前：按时间精度归零并格式化为可解析的完整存储值 */
export declare function formatDateTimeForStorage(value: Date, storageFormat: string, timeFormat?: TimePickerFormat): string;
export declare function formatDateTime(attrs: any, value?: string): string;
export declare function formatDateTimeHook(props: any, value?: string): string;
/** 根据时间字段配置解析时间选择器 format（纯时间字段） */
export declare function resolveTimePickerFormat(props: {
    timeFormat?: TimePickerFormat;
    enableCustomFormat?: boolean;
    customFormat?: string;
    formatTemplate?: string;
    formatSeparator?: string;
}): TimePickerFormat;
/** 判断一个日期或日期时间字符串是否在最小和最大时间戳之间 */
export declare function isOutOfRange(inputStr: string, minTimestamp?: number, maxTimestamp?: number): boolean;
type NumberFieldType = 'fw:number' | 'fw:double';
type RoundingMode = 1 | 4 | 6;
type NormalizeNumberTextOptions = {
    type: NumberFieldType;
    digits?: number;
    roundingMode?: RoundingMode;
    displayMode?: DecimalDisplayModeType;
};
type NormalizeNumberTextResult = {
    value: string | null;
    changed: boolean;
};
/**
 * 结束输入时的数字规范化：
 * - 对齐 gct-inputnumber 的前缀解析语义（容忍尾部噪声，取可解析前缀）
 * - 非法值落为空字符串
 * - fw:number 根据 digits 执行整数化或小数截断
 */
export declare function normalizeNumberTextOnCommit(rawText: string, options: NormalizeNumberTextOptions): NormalizeNumberTextResult;
export declare function buildNumberFormats(props: any, type: NumberFieldType): {
    type: NumberFieldType;
    digits: number | undefined;
    roundingMode: RoundingMode | undefined;
    displayMode: any;
};
export declare function formatNumberHook(props: any, type: NumberFieldType, value?: string | number): string | number | undefined;
export {};
