import type { Atom } from "../atom/definition.ts"; import { AtomImpl } from "../atom/implementation.ts"; import { EnsoUtils as Utils } from "../utils.ts"; import { Field } from "./definition.ts"; export { FieldImpl as Field, FieldProxyImpl as FieldProxy }; export declare class FieldImpl extends AtomImpl { #private; static prop: string; static create(value: Value, parent?: Atom.Parent.Bare.Ref<"field", any, any>): FieldImpl; static proxy(field: any, intoMapper: any, fromMapper: any): FieldProxyImpl; static optional(target: Atom.BareOptionalTarget<"field", FieldImpl>): FieldOptionalImpl; static Component(props: Field.Component.Props): import("react").ReactNode; static normalizeError(error: Field.Error.Type): Field.Error; static errorChangesFor(wasValid: boolean): bigint; constructor(value: Value, parent?: Atom.Parent.Bare.Ref<"field", any, any>); get dirty(): boolean; useDirty(enable?: Enable): Atom.Hooks.Result; get initial(): Value; commit(): void; reset(): void; useMeta(props?: Props): { valid: boolean | undefined; errors: Field.Error[] | undefined; dirty: boolean | undefined; }; control(props: any): { name: any; ref: (element: Element | null) => void; onBlur: (event: React.FocusEvent) => void; }; ref(element: Element | null): void; get errors(): any; useErrors(enable?: Enable): Atom.Hooks.Result; addError(error: any): void; clearErrors(): void; get validationTree(): any; get valid(): boolean; useValid(enable?: Enable): Atom.Hooks.Result; validate(validator: any): Promise; clearCache(): void; } export declare class FieldProxyImpl extends FieldImpl { #private; constructor(source: FieldImpl, into: any, from: any); deconstruct(): void; connect(source: FieldImpl): void; } export declare class FieldOptionalImpl extends FieldImpl { #private; constructor(target: Atom.BareOptionalTarget<"field", FieldImpl>); get value(): Value; at>(key: Key): any; get try(): Atom.BareTry, keyof Value> | undefined | null; addError(error: Field.Error | string): void; } //# sourceMappingURL=implementation.d.ts.map