import { InternalNamePath, Meta } from "./types.js"; import { ValidateStatus } from "./FormItem/index.js"; //#region src/form/util.d.ts declare function toArray(candidate?: T | T[] | false): T[]; /** * Key used to track the rendered control instance of a Form.Item. * Unlike `getFieldId`, this is not prefixed with the form name, so it stays * stable no matter whether the Form declares a `name`. */ declare function toNamePathStr(namePath: InternalNamePath): string; declare function getFieldId(namePath: InternalNamePath, formName?: string): string | undefined; /** * Get merged status by meta or passed `validateStatus`. */ declare function getStatus(errors: any[], warnings: any[], meta: Meta, defaultValidateStatus: ValidateStatus | DefaultValue, hasFeedback?: boolean, validateStatus?: ValidateStatus): ValidateStatus | DefaultValue; declare function initialValueFormat(value: any): any; //#endregion export { getFieldId, getStatus, initialValueFormat, toArray, toNamePathStr };