/** * A hook that exposes data for a given `Disclosure` component to it's * descendants. * @returns {{id: string, panelId: string, open: boolean }} */ export function useDisclosureContext(): { id: string; panelId: string; open: boolean; }; export function Disclosure({ children, defaultOpen, onChange, open: openProp, ...props }: { [x: string]: any; children: any; defaultOpen?: boolean; onChange: any; open: any; }): React.JSX.Element; /** * DisclosureButton renders the trigger button a user clicks to interact with * a disclosure. */ export const DisclosureButton: React.ForwardRefExoticComponent>; /** * DisclosurePanel renders the collapsible panel in which inner content for an * disclosure item is rendered. */ export const DisclosurePanel: React.ForwardRefExoticComponent>; export type DisclosureStates = { OPEN: string; COLLAPSED: string; }; export type DisclosureContextValue = { disclosureId: string; onSelect: void; open: boolean; panelId: string; }; import * as React from 'react';