import type { RPath } from "../../core/index.js"; import type { FieldErrors } from "../errors.js"; import type { FieldPath } from "../id.js"; import type { Update } from "../model.js"; import type { ValidationError } from "../validator.js"; import type { FormState } from "./state.js"; /** * @query */ export declare function getFieldErrors(ctx: FormState, path: FieldPath): FieldErrors; /** * @query */ export declare function getFieldErrorsByPath(ctx: FormState, path: RPath): FieldErrors; /** * @query */ export declare function getFieldsErrors(ctx: FormState, paths: Iterable): string[]; /** * @query */ export declare function getFieldsErrorsByPath(ctx: FormState, paths: RPath[]): string[]; /** * @command */ export declare function updateErrors(ctx: FormState, errors: ReadonlyArray): void; /** * @command */ export declare function updateFieldErrors(ctx: FormState, path: FieldPath, errors: Update): boolean; /** * @command */ export declare function updateFieldErrorsByPath(ctx: FormState, path: RPath, errors: Update): boolean; /** * @query */ export declare function hasErrors(ctx: FormState): boolean; /** * @query */ export declare function getErrors(ctx: FormState): Iterable<[FieldPath, FieldErrors]>;