import type { Dispatch, SetStateAction, SyntheticEvent } from 'react'; interface Props { readonly defaultExpanded?: boolean | undefined; readonly onChange?: ((event: SyntheticEvent, expanded: boolean) => void) | undefined; } export interface State { readonly expanded: boolean; readonly handleChange: (event: SyntheticEvent, expanded: boolean) => void; readonly setExpanded: Dispatch>; } export default function useAccordion({ defaultExpanded, onChange, }?: Partial): State; export {};