import React from 'react'; import { DataRowProps, PickerFooterProps, PickerInputBaseProps, DataSourceState } from '@epam/uui-core'; import { PickerTogglerProps } from '../PickerToggler'; export type UsePickerInputProps = PickerInputBaseProps & TProps & { toggleModalOpening?(opened: boolean): void; }; export declare function usePickerInput(props: UsePickerInputProps): { view: import("@epam/uui-core").IDataSourceView; dataSourceState: DataSourceState; getPlaceholder: () => any; getName: (i: void | (TItem & { name?: string; })) => string; getRows: () => { cx?: import("@epam/uui-core").ClassValue; onClick?: ((e?: any) => void) & ((rowProps: DataRowProps) => void) & ((rowProps: DataRowProps) => void); key?: React.Key; children?: React.ReactNode; rawProps?: React.HTMLAttributes & Record<`data-${string}`, string>; alignItems?: import("csstype").Property.AlignItems; justifyContent?: import("csstype").Property.JustifyContent; checkbox?: { isVisible: boolean; reserveSpace?: boolean; } & import("@epam/uui-core").IDisableable & import("@epam/uui-core").ICanBeInvalid; isSelectable?: boolean; dnd?: import("@epam/uui-core").IDndActor; link?: import("@epam/uui-core").Link; pin?(rowProps: DataRowProps): boolean; isInvalid?: boolean; isDisabled?: boolean; isReadonly?: boolean; isRequired?: boolean; value: TItem; onValueChange?: (newValue: TItem) => void; validationMessage?: React.ReactNode; id: TId; rowKey: string; index: number; parentId?: TId; path?: import("@epam/uui-core").DataRowPathItem[]; depth?: number; indent?: number; isLoading?: boolean; isUnknown?: boolean; isFoldable?: boolean; isFolded?: boolean; isChecked?: boolean; isCheckable?: boolean; isChildrenChecked?: boolean; isSelected?: boolean; isChildrenSelected?: boolean; isFocused?: boolean; isLastChild?: boolean; onFold?(rowProps: DataRowProps): void; onCheck?(rowProps: DataRowProps): void; onSelect?(rowProps: DataRowProps): void; onFocus?(focusedIndex: number): void; isPinned?: boolean; }[]; getTogglerProps: () => PickerTogglerProps; getFooterProps: () => PickerFooterProps & { onClose: () => void; }; shouldShowBody: () => boolean; toggleBodyOpening: (newOpened: boolean) => void; isSingleSelect: () => boolean; getListProps: () => import("@epam/uui-core").DataSourceListProps; handleTogglerSearchChange: (value: string) => void; handleDataSourceValueChange: (newDataSourceState: React.SetStateAction>) => void; handleSelectionValueChange: (newValue: any) => void; getSearchPosition: () => import("@epam/uui-core").PickerInputSearchPosition; closePickerBody: () => void; openPickerBody: () => void; handlePickerInputKeyboard: (rows: DataRowProps[], event: React.KeyboardEvent, actualSearch?: string) => void; }; //# sourceMappingURL=usePickerInput.d.ts.map