import { type AnyKitForm } from '../runtime/formRuntime.js';
import type { ScopeHandle } from '../components/layouts/FieldScope/index.js';
/**
 * The number of **visible** errors (per the form's visibility policy) among the scope's fields,
 * leaving out hidden, disabled, read-only and excluded ones. Re-renders only when the count
 * changes.
 */
export declare function useScopeErrors(scope: ScopeHandle | null, form?: AnyKitForm): number;
