import { SFCheckboxProps, SFRadioGroupProps, SFSelectProps, SFTextFieldProps } from './SF'; import { IsAny } from './types'; declare type _Optional = T extends string | number ? Exclude | null : T; export declare type TOptional = true extends IsAny ? T : O extends boolean ? _Optional : T; export declare type FieldOptionsBase = { default: T; trim?: boolean; }; export declare type FieldOptions = FieldOptionsBase & { optional?: O; }; export declare type Field> = { options: FieldOptions; props: P; getter: (value: TO) => Partial

; setter: (setValue: (newValue: TO) => void) => Partial

; }; export declare type FormInputAdapterFunction = (options: FieldOptions, props: P) => Field; export declare type FormAdapterBase = { [K in string]: FormInputAdapterFunction; }; export declare const defaultFormAdapter: { checkbox: (options: FieldOptions, props: SFCheckboxProps) => Field, { value?: boolean | undefined; }>>>>, TOptional>; radioGroup: (options: FieldOptions, props: SFRadioGroupProps) => Field, TOptional>; textField: (options: FieldOptions, props: SFTextFieldProps) => Field>, TOptional>; select: (options: FieldOptions, props: SFSelectProps) => Field, TOptional>; }; export {};