import * as React from 'react'; export interface UseOpenStateParams { /** * Controls whether the picker is open. */ open?: boolean; /** * Callback fired when the picker is opened. */ onOpen?: () => void; /** * Callback fired when the picker is closed. */ onClose?: () => void; /** * If `true`, the component is disabled and can't be opened. */ disabled?: boolean; /** * If `true`, the component is read-only and can't be opened. */ readOnly?: boolean; /** * If `true`, focuses the input when the picker opens. */ autoFocus?: boolean; } export interface UseOpenStateResult { /** * Current open state of the picker. */ open: boolean; /** * Element that triggered the picker to open. */ anchorEl: HTMLElement | null; /** * Handle opening the picker. */ handleOpen: (event?: React.MouseEvent) => void; /** * Handle closing the picker. */ handleClose: () => void; } /** * Hook to manage the open state of a picker. * * @param params Open state params * @returns Open state and handlers */ export declare function useOpenState(params: UseOpenStateParams): UseOpenStateResult;