// @flow
import type { Element } from 'react';
import type { ContainerProps } from '../../../mixins/container';
import type { TestingProps } from '../../../mixins/testing';

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

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