import { CdsList } from '../components/CdsList'; import { IInternalItem, IUseItems } from './items'; import { TCdsIconsName } from '@central-design-system/icons'; import { ComponentProps, MaybePick } from '../utils'; import { PropType, ComputedRef, Ref } from 'vue'; export interface ISelectProps { multiple: boolean; openOnClear: boolean; hideSelected: boolean; hideNoData: boolean; isSelectAll: boolean; modelValue: any; } export declare const makeSelectProps: (defaults?: Defaults | undefined) => import('../utils').AppendDefault<{ /** * Множественный выбор элементов */ multiple: { type: PropType; default: boolean; }; /** * Открывать при очистке поля ввода */ openOnClear: { type: PropType; default: boolean; }; /** * Скрывать выбранные элементы из списка */ hideSelected: { type: PropType; default: boolean; }; /** * Скрывать отображаемый текст, если нет данных */ hideNoData: { type: PropType; default: boolean; }; /** * Добавляет возможность выбора всех элементов. Только для мультивыбора (multiple) */ isSelectAll: { type: PropType; default: boolean; }; /** * Отображать элементы выбранного списка в одну строку */ ellipsis: { type: PropType; default: boolean; }; /** * Свойства для списка */ listProps: { type: PropType>; default: undefined; }; /** * Иконка выпадающего меню */ menuIcon: { type: PropType; default: string; validator: (value: TCdsIconsName) => boolean; }; }, Defaults>; export declare function useSelect(props: ISelectProps, items: ComputedRef | Ref, transformIn: IUseItems['transformIn'], transformOut: IUseItems['transformOut']): { model: Ref[], readonly IInternalItem[]> & { readonly externalValue: any; }; selections: ComputedRef[]>; selected: ComputedRef; selectedAll: ComputedRef; selectedIndeterminate: ComputedRef; selectStrategy: ComputedRef<"independent" | "single-independent">; displayItems: ComputedRef[]>; }; export declare function useFilteredSelectProps>(props: Props, filteredProps: Partial, excludes: Extract>, string>[]): { inputProps: [Partial] extends [Ref] ? import('@vue/shared').IfAny & Partial, Ref & Partial, Ref & Partial>, Ref & Partial> : Ref>, Partial | import('vue').UnwrapRef>>; };