// @flow

import type { Element } from 'react';

export type ExpanderProps = {
  headingComponent: Element<*>,
  headingComponentOpen?: Element<*>,
  children: string | Element<*> | Array<Element<*>>,
  isOpen?: boolean,
  onToggle?: (isOpen: boolean) => void,
  buttonStyles?: ?{ [string]: string },
};

export type ExpanderContextType = {
  toggleExpander: () => void,
};
