import { type RefObject } from 'react'; import { type TextBoxProps } from '../../../../TextBox'; type Options = { /** * The open state of the BasePicker component. */ open: boolean; /** * Callback when the open state of the BasePicker component is changed. * * @param open - The new open state. */ onOpenStateChanged?: (open: boolean) => void; /** * The ref of the TextBox. * This is used to focus the TextBox when the BasePicker is closed on some cases. */ textBoxRef: RefObject; /** * Callback when the key is pressed on the TextBox. */ onKeyDown?: TextBoxProps['onKeyDown']; }; /** * Controller for the display of the BasePicker component. * * @param options - The options for the controller. * * @returns The internal open state, and the function to toggle the open state. */ export declare function useBasePickerDisplayController({ open, onOpenStateChanged, textBoxRef }: Options): { isBasePickerOpen: boolean; toggleBasePicker: () => void; onPickerPopoverChange: () => void; onPickerPopoverWrapperKeyDown: (event: React.KeyboardEvent) => void; }; export {};