import type { Dispatch, RefObject } from 'react';
import type { ComboboxProps } from '../Combobox.types';
import type { FocusedPathAction, FocusedPathState, PathAction, PathState, TreePathAction, TreePathState } from '../reducers';
import type { ValueToItemMapType } from './usePathMaps';
type Props = Pick<ComboboxProps, 'disabled' | 'readOnly' | 'onToggle' | 'multiple' | 'alwaysOpened' | 'renderValue'> & {
    rootRef: RefObject<HTMLInputElement>;
    value: ComboboxProps['value'];
    valueToItemMap: ValueToItemMapType;
    setTextValue: (newTextValue: string) => void;
};
type ReturnedProps = {
    path: PathState;
    treePath: TreePathState;
    focusedPath: FocusedPathState;
    dispatchPath: Dispatch<PathAction>;
    dispatchTreePath: Dispatch<TreePathAction>;
    dispatchFocusedPath: Dispatch<FocusedPathAction>;
    handleListToggle: (opened: boolean) => void;
    resetListState: () => void;
    isListOpened: boolean;
};
export declare const useListState: ({ disabled, readOnly, onToggle, multiple, alwaysOpened, renderValue, rootRef, value, valueToItemMap, setTextValue, }: Props) => ReturnedProps;
export {};
//# sourceMappingURL=useListState.d.ts.map