import React, { Component } from 'react'; import { type PopperOptions } from 'popper.js'; import { type IconDefinition } from '@deephaven/icons'; import { type TimeInputElement } from './TimeInput'; import './CustomTimeSelect.scss'; declare enum MENU_NAVIGATION_DIRECTION { UP = "UP", DOWN = "DOWN" } type CustomTimeSelectProps = { options: { title: string; value: number; }[]; popperOptions: PopperOptions; value: number | null; onChange: (value: number) => void; disabled: boolean; icon: IconDefinition; placeholder: string; customText: string; valueToTime: (val: number | null) => number; timeToValue: (time: number) => number; invalid: boolean; 'data-testid'?: string; }; type TimeInSeconds = number; type CustomTimeSelectState = { keyboardOptionIndex: number; menuIsOpen: boolean; inputWidth: number; customTime: TimeInSeconds; inputFocused: boolean; }; declare class CustomTimeSelect extends Component { static MENU_NAVIGATION_DIRECTION: typeof MENU_NAVIGATION_DIRECTION; static DROP_DOWN_MENU_HEIGHT: number; static defaultProps: Partial; constructor(props: CustomTimeSelectProps); csContainer: React.RefObject; menuContainer: React.RefObject; button: React.RefObject; input: React.RefObject; getSelectedText(): string; setInputWidth(): void; focus(): void; updateInputValue(value: number): void; handleResize(): void; handleMenuKeyDown(event: React.KeyboardEvent): void; handleMenuNavigation(direction: MENU_NAVIGATION_DIRECTION): void; handleOptionClick(event: React.MouseEvent): void; updateAndClose(update: number): void; handleOptionFocus(event: React.FocusEvent): void; handleMenuOpened(): void; focusInput(): void; focusOption(index: number): void; handleMenuExited(): void; handleCustomInput(value: number): void; updateFromCustom(): void; toggleMenu(event: React.MouseEvent): void; openMenu(): void; closeMenu(focusButton?: boolean): void; updateKeyboardIndex(): void; scrollOptionIntoView(index: number): void; renderMenuElement(): JSX.Element; renderOptions(): React.ReactNode; render(): JSX.Element; } export default CustomTimeSelect; //# sourceMappingURL=CustomTimeSelect.d.ts.map