import { ComputedRef, PropType, Ref } from 'vue'; export interface IInputSlot { id: ComputedRef; isDirty: ComputedRef; isDisabled: ComputedRef; isReadonly: ComputedRef; isPure: Ref; isValid: ComputedRef; isValidating: Ref; reset: () => void; resetValidation: () => void; validate: () => Promise; } export interface IInputProps { id: string | undefined; label: string | undefined; description: string | undefined; value: any; messages: string[] | string; persistentMessages: boolean; hint?: string; persistentHint?: boolean; } export interface IUseInput { id: ComputedRef; hasLabel: ComputedRef; hasDescription: ComputedRef; } export declare const makeInputProps: (defaults?: Defaults | undefined) => import('../utils').AppendDefault<{ /** * Идентификатор */ id: { type: PropType; default: undefined; }; /** * Лейбл */ label: { type: PropType; default: undefined; }; /** * Описание */ description: { type: PropType; default: undefined; }; /** * Значение */ value: { type: PropType; default: null; }; /** * Сообщения подсказки */ messages: { type: PropType; default: () => never[]; }; /** * Всегда показывать сообщения и подсказки * @deprecated В CDS 4 `messages` видны всегда — проп можно просто убрать */ persistentMessages: { type: PropType; default: boolean; }; /** * Подсказка под полем. Доступно с 3.11.0 — синоним `messages`. */ hint: { type: PropType; default: undefined; }; /** * Всегда показывать подсказку, а не только в фокусе. Доступно с 3.11.0 — * синоним `persistentMessages`. */ persistentHint: { type: PropType; default: boolean; }; }, Defaults>; export declare function useInput(props: IInputProps, slots: Record, name?: string): IUseInput; export declare function useFilteredInputProps>(props: T, exclude: string[]): { inputProps: [Partial] extends [Ref] ? import('@vue/shared').IfAny & Partial, Ref & Partial, Ref & Partial>, Ref & Partial> : Ref>, Partial | import('vue').UnwrapRef>>; excludedProps: [Partial] extends [Ref] ? import('@vue/shared').IfAny & Partial, Ref & Partial, Ref & Partial>, Ref & Partial> : Ref>, Partial | import('vue').UnwrapRef>>; }; export declare function useFilteredInputAttrs(attrs: Record): { rootAttrs: Ref<{}, {}>; inputAttrs: Ref<{}, {}>; }; /** * Filter attributes that should be applied to * the root element of an input component. Remaining * attributes should be passed to the element inside. */ export declare function filterInputAttrs(attrs: Record): Omit>, any>[]; /** * Filter props for input controls * @param props * @param exclude */ export declare function filterInputProps(props: Record, exclude: string[]): (Partial, string>> | Omit, string>)[]; export declare const excludeControls: RegExp;