import type { FormInstance } from 'antd/es/form'; import type { ScrollFocusOptions } from 'antd/es/form/interface'; type ScrollToFirstErrorValue = ScrollFocusOptions | boolean | undefined; export declare function setScrollToFirstErrorFlag(instance: FormInstance, value: ScrollToFirstErrorValue): void; /** * Run `fn` with the scroll-on-error behavior suppressed for its `validateFields` * call. The patched `validateFields` reads the marker synchronously, so it is * captured per call; the marker is cleared when the returned promise settles. */ export declare function withSkipScrollOnError(form: FormInstance, fn: () => Promise): Promise; /** * Patch `validateFields` so that a validation failure also scrolls to the first * error field when `scrollToFirstError` is configured. antd only wires the * property to the `submit()` failure branch; this covers direct `validateFields()` * calls (e.g. Modal `onOk`). The store's internal `submit()` calls its own * `validateFields` (not the patched instance method), so no double scroll. */ export declare function patchScrollOnValidateError(instance: FormInstance): void; export {};