import React from 'react'; export declare type ValidityStateKeys = keyof ValidityState; export declare type ValidityStateMessage = Record; export declare type ValidationMessage = Partial; export interface FormState { readonly [key: string]: unknown; } export interface FieldProps { value?: V; onChange: (val?: V) => void; onSubmit: () => void; label?: string; validationMessages?: ValidationMessage; /** * Коллбек для валидации ввода в дополнение к браузерной валидации */ customValidate?: (value?: V) => boolean; checkInput?: () => void; description?: string; } export interface DefaultFieldPropsWithRef extends FieldProps { innerRef?: React.RefObject; } export declare type FieldPropsWithRef> = DefaultFieldPropsWithRef & P extends React.ComponentProps ? React.ComponentProps : never; interface VoiceLabelsSuggest { suggestion: string; hint?: string; } interface VoiceLabelsConfirm { one: string; many?: string; description?: string; confirm?: string; reject?: string; } export interface VoiceLabels extends VoiceLabelsSuggest, VoiceLabelsConfirm { } export interface FormContextApi { data: D; onSubmit: () => void; onChange: (val: V) => void; active: keyof D; } export declare type FieldComponentProps> = P & Omit; export {}; //# sourceMappingURL=types.d.ts.map