import { SvelteMap } from "svelte/reactivity"; import type { RPath } from "../core/index.js"; import type { ValidationError } from "./validator.js"; import type { PathTrieRef, Update } from "./model.js"; import type { FieldPath } from "./id.js"; import type { FieldState } from "./field-state.js"; export declare const FORM_CONTEXT: unique symbol; export declare const FORM_VALUE: unique symbol; export declare const FORM_ID_PREFIX: unique symbol; export declare const FORM_ERRORS: unique symbol; export declare const FORM_ID_FROM_PATH: unique symbol; export declare const FORM_PATHS_TRIE_REF: unique symbol; export declare const FORM_MARK_SCHEMA_CHANGE: unique symbol; export declare const FORM_KEYED_ARRAYS: unique symbol; export declare const FORM_FIELDS_VALIDATION_MODE: unique symbol; export declare const FORM_SCHEMA: unique symbol; /** @deprecated */ export declare const FORM_RETRIEVED_SCHEMA: unique symbol; export declare const FORM_ROOT_PATH: unique symbol; export declare const FORM_UI_SCHEMA_ROOT: unique symbol; export declare const FORM_UI_SCHEMA: unique symbol; export declare const FORM_UI_OPTIONS_REGISTRY: unique symbol; export declare const FORM_UI_EXTRA_OPTIONS: unique symbol; export declare const FORM_VALIDATOR: unique symbol; export declare const FORM_MERGER: unique symbol; export declare const FORM_ICONS: unique symbol; export declare const FORM_DISABLED: unique symbol; export declare const FORM_DATA_URL_TO_BLOB: unique symbol; export declare const FORM_TRANSLATION: unique symbol; export declare const FORM_TRANSLATE: unique symbol; export declare const FORM_RESOLVER: unique symbol; export declare const FORM_THEME: unique symbol; export declare const FORM_FIELDS_STATE_MAP: unique symbol; export declare const FORM_CONFIGS_CACHE: unique symbol; export declare function internalRegisterFieldPath(ref: PathTrieRef, path: RPath): FieldPath; export declare function internalHasFieldState(map: SvelteMap, path: FieldPath, state: FieldState): boolean; /** This class must maintain two invariants: - Field errors list should contain at leas one error - Errors in the field errors list must be unique **/ export declare class FormErrors { #private; private readonly ref; constructor(ref: PathTrieRef); assign(entries: Iterable): this; updateErrors(errors: ReadonlyArray): this; getFieldErrors(path: FieldPath): ReadonlyArray | undefined; updateFieldErrors(path: FieldPath, errors: Update): boolean; hasErrors(): boolean; clear(): void; [Symbol.iterator](): Generator<[FieldPath, string[]]>; }