import { ControllerRenderProps, FieldPath, FieldPathByValue, FieldValues, RegisterOptions } from "react-hook-form"; import { FormFieldLayoutProps } from "./FormFieldLayout.js"; type StringRules = FieldPath> = Omit, "valueAsNumber" | "valueAsDate" | "setValueAs">; type NumberRules = FieldPath> = Omit, "pattern">; export type CommonStringFieldProps = FieldPathByValue> = FormFieldLayoutProps & { name: TName; rules?: StringRules; }; export type CommonNumberFieldProps = FieldPathByValue> = FormFieldLayoutProps & { name: TName; rules?: NumberRules; inputWidth?: `w-${number}`; }; export type CommonUnknownFieldProps = FieldPath> = FormFieldLayoutProps & { name: TName; rules?: Pick, "required" | "validate">; }; export type PatchedControllerRenderProps = FieldPathByValue> = Omit, "onChange"> & { onChange: (event: TValueType) => void; }; export {}; //# sourceMappingURL=types.d.ts.map