import type { RPath } from "../../core/index.js"; import type { FieldPath } from "../id.js"; import type { Config } from "../config.js"; import { type FieldState } from "../field-state.js"; import type { FormState } from "./state.js"; export declare function setFieldState(ctx: FormState, path: FieldPath, state: FieldState): void; /** * @command */ export declare function setFieldStateByPath(ctx: FormState, path: RPath, state: FieldState): void; /** * @query */ export declare function hasFieldState(ctx: FormState, path: FieldPath, state: FieldState): boolean; /** * @query */ export declare function hasFieldStateByPath(ctx: FormState, path: RPath, state: FieldState): boolean; export declare function makeEventHandlers(ctx: FormState, config: () => Config, validate: () => void): { onfocus(): void; oninput(): void; onchange(): void; onblur(): void; };