import React from 'react'; import { DropdownProps, DropdownToggleProps, DropdownPopperProps } from '@patternfly/react-core'; export interface ExtendedDropdownPopperProps extends DropdownPopperProps { distance: string; } export interface AttachMenuProps extends DropdownProps { /** Items in menu */ filteredItems: React.ReactNode; /** A callback for when the input value changes. */ handleTextInputChange: (value: string) => void; /** Flag to indicate if menu is opened. */ isOpen: boolean; /** Additional properties to pass to the Popper */ popperProps?: ExtendedDropdownPopperProps; /** Callback to change the open state of the menu. Triggered by clicking outside of the menu. */ onOpenChange: (isOpen: boolean) => void; /** Keys that trigger onOpenChange, defaults to tab and escape. It is highly recommended to include Escape in the array, while Tab may be omitted if the menu contains non-menu items that are focusable. */ onOpenChangeKeys?: string[]; /** Function callback called when user selects item. */ onSelect?: (event?: React.MouseEvent, value?: string | number) => void; /** Placeholder for search input */ searchInputPlaceholder?: string; /** Aria label for search input */ searchInputAriaLabel?: string; /** Toggle to be rendered */ toggle: DropdownToggleProps | ((toggleRef: React.RefObject) => React.ReactNode); } export declare const AttachMenu: React.FunctionComponent; export default AttachMenu;