import * as React from 'react'; import type { CollapsableState, CollapseStateChangeHandler, } from '../Collapsable'; export declare type UseCollapsableStateReturn = [ undefined | CollapsableState, CollapseStateChangeHandler, React.Dispatch> ]; /** * Use this hook to get automatically the open value * and the handler function to attach to collapsable element. * Additionally function to force change will be returned * * @param initialState */ export declare function useCollapsableState( initialState?: CollapsableState ): UseCollapsableStateReturn;