import type { MarkOptional } from 'ts-essentials'; import type { RadioField, RadioFieldClient } from '../../fields/config/types.js'; import type { RadioFieldValidation } from '../../fields/validations.js'; import type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js'; import type { ClientFieldBase, FieldClientComponent, FieldPaths, FieldServerComponent, ServerFieldBase } from '../forms/Field.js'; import type { FieldDescriptionClientComponent, FieldDescriptionServerComponent, FieldDiffClientComponent, FieldDiffServerComponent, FieldLabelClientComponent, FieldLabelServerComponent } from '../types.js'; type RadioFieldClientWithoutType = MarkOptional; type RadioFieldBaseClientProps = { /** * Threaded through to the setValue function from the form context when the value changes */ readonly disableModifyingForm?: boolean; readonly onChange?: OnChange; readonly path: string; readonly validate?: RadioFieldValidation; readonly value?: string; }; type RadioFieldBaseServerProps = Pick; export type RadioFieldClientProps = ClientFieldBase & RadioFieldBaseClientProps; export type RadioFieldServerProps = RadioFieldBaseServerProps & ServerFieldBase; export type RadioFieldServerComponent = FieldServerComponent; export type RadioFieldClientComponent = FieldClientComponent; type OnChange = (value: T) => void; export type RadioFieldLabelServerComponent = FieldLabelServerComponent; export type RadioFieldLabelClientComponent = FieldLabelClientComponent; export type RadioFieldDescriptionServerComponent = FieldDescriptionServerComponent; export type RadioFieldDescriptionClientComponent = FieldDescriptionClientComponent; export type RadioFieldErrorServerComponent = FieldErrorServerComponent; export type RadioFieldErrorClientComponent = FieldErrorClientComponent; export type RadioFieldDiffServerComponent = FieldDiffServerComponent; export type RadioFieldDiffClientComponent = FieldDiffClientComponent; export {}; //# sourceMappingURL=Radio.d.ts.map