import FormStore, { ItemStore } from './store'; import { FormConfig, ItemStores, FormStoreInterface, AutoValidate, AutoHandle, ItemStoreProps, ErrorsType } from './interface'; /** * 获取监听的key * @param keys * @param formStore * @returns */ export declare function getListenValues(keys: (keyof T)[], formStore: FormStoreInterface): () => T[keyof T][]; /** * 获取所有值 * @param formStore * @returns */ export declare function getValues(formStore: FormStoreInterface): T; /** * 创建联合验证器 * @param autoValidator * @param formStore * @param autoValidatorId * @returns */ export declare function createUnionValidator(autoValidator: AutoValidate, formStore: FormStoreInterface, autoValidatorId: string): () => void; /** * 创建自动处理器 */ export declare function createAutoHandle(autoHandle: AutoHandle, formStore: FormStoreInterface): import("mobx").IReactionDisposer; export declare function createUnionValidate(autoValidator: AutoValidate, formStore: FormStoreInterface, autoValidatorId: string): import("mobx").IReactionDisposer; export declare function configToItemStore(props: ItemStoreProps): ItemStore; export declare function parseFormConfigs(formConfigs: { [P in keyof T]: FormConfig; }): { formStore: FormStore; }; export declare function parseAddFormConfigs(formStore: FormStore, formConfigs: Partial<{ [P in keyof T]: FormConfig; }>): Partial>; export declare function genFormId(id: string | string[], replaceId?: string): string; export declare function searchRequired(id: string | string[], store?: FormStore): boolean; /** * 跳转到表单字段处,如果可以focus则自动focus * @param fieldKey 字典id * @param options scrollIntoView的配置透传 * @returns 是否跳转成功 */ export declare const scrollToField: (fieldKey: string, options?: boolean | ScrollIntoViewOptions) => boolean; export declare function scrollByFormErrors(errs?: ErrorsType): boolean; export declare function getFirstError(errs?: ErrorsType): string;