import { IMenuDataWithState } from '../../types';
import { MouseEvent } from 'react';
/**
 * Manage the expanded state for one sidebar menu item.
 * @param {IMenuDataWithState} item - Sidebar item to control.
 * @returns {Object} The open state, click handler, and child metadata.
 */
export declare const useCollapse: (item: IMenuDataWithState, defaultOpen?: boolean) => {
    isOpen: boolean;
    handlerClick: (event?: MouseEvent<HTMLElement>) => void;
    hasChildren: boolean | undefined;
};
//# sourceMappingURL=useCollapse.d.ts.map