import React from 'react'; import { PopperProps } from 'react-popper'; import { IDropdownWrapper } from '../../dropdown/wrapper'; import { InputProps } from '../types'; import { IDropdownOption } from '../../dropdown'; import { IDropdownMenuDynamic } from '../../dropdown/menuDynamic'; import { InputContainerProps } from '../base/InputContainer'; /** @deprecated, do not use me anymore, this is only for backward compatible */ export interface IInputMenuRenderOptionsProps { options: IDropdownOption[]; activeOptions: IDropdownMenuDynamic['activeOptions']; activeValue: any; onClose: () => void; onClick: (option: IDropdownOption) => void; } /** @deprecated, do not use me anymore, this is only for backward compatible */ export interface IInputMenu extends InputProps, Pick, Pick { /** Is disabled */ isDisabled?: boolean; /** Optional passed in dropdown styles */ dropdownStyle?: object; /** Options. They must have a name and value at least */ options: IDropdownOption[]; /** Optional placeholder */ placeholder?: string; /** Option to render your own content */ renderValue?: (option?: IDropdownOption) => React.ReactNode; renderOptions: (params: IInputMenuRenderOptionsProps) => React.ReactNode; placement?: PopperProps['placement']; /** Optional use portal */ usePortal?: boolean; } /** @deprecated, do not use me anymore, this is only for backward compatible */ export declare const InputMenu: React.FC; interface IDropdownValue extends Pick { value: string | string[] | null; } /** @deprecated, do not use me anymore, this is only for backward compatible */ export declare const DropdownValue: React.FC; export {};