/** @jsx jsx */ /** @jsxFrag React.Fragment */ import React from 'react'; import type { PersistentStateReducerHook } from '../../usePersistentStateReducer'; import { type SidebarBlockConfig } from './Block'; interface State { blockState: { [blockTitle: string]: boolean; }; } declare type Action = { type: 'expand-all' | 'collapse-all' | 'reset-state'; } | { type: 'collapse-one' | 'expand-one' | 'collapse-others'; payload: { blockKey: string; }; }; export interface SidebarProps { stateKey: string; title: string | JSX.Element; blocks: SidebarBlockConfig[]; representsSelection?: boolean; className?: string; } declare function makeSidebar(persistentReducer: PersistentStateReducerHook): React.FC; export default makeSidebar;