import { a as Machine, f as Component } from "./index-B8JCdyld.js"; import { n as FormMachine } from "./form.registry-Cb8Pvoe8.js"; import { EventObject } from "@zag-js/core"; import { PropTypes } from "@zag-js/types"; //#region Resources/Private/Primitives/Field/src/field.types.d.ts interface FieldProps { id: string; name: string; invalid?: boolean; required?: boolean; disabled?: boolean; readOnly?: boolean; } interface FieldSchema { props: FieldProps; context: { invalid: boolean; required: boolean; disabled: boolean; readOnly: boolean; formMachine: FormMachine | null; describeIds: string | undefined; hasDescription: boolean; }; computed: { errors: string[]; }; state: 'ready'; event: EventObject; action: string; effect: string; } interface FieldApi { getFormMachine(): FieldSchema['context']['formMachine']; invalid: boolean; errors: string[]; name: string; disabled: boolean; required: boolean; readOnly: boolean; getRootProps(): PropTypes['element']; getLabelProps(): PropTypes['label']; getControlProps(): PropTypes['element']; getErrorProps(): PropTypes['element']; getDescriptionProps(): PropTypes['element']; getErrorText(): string | null; } //#endregion //#region Resources/Private/Primitives/Field/Field.d.ts declare class Field extends Component { static name: string; private subscribedToForm; initMachine(props: FieldProps): Machine; initApi(): FieldApi; subscribeToFormMachine(): void; render(): void; } //#endregion export { Field };