import * as React from 'react' import type {PortalizeProps} from 'react-portalize' /** * This hook provides the current value of the disclosure's context object */ export declare function useDisclosure(): DisclosureContextValue /** * This component creates the context for your disclosure target and trigger * and contains some configuration options. */ export declare function Disclosure({ id, open, defaultOpen, onChange, children, }: DisclosureProps): JSX.Element export declare namespace Disclosure { var displayName: string } /** * A React hook for creating a headless disclosure target to [WAI-ARIA authoring practices](https://www.w3.org/TR/wai-aria-practices-1.1/examples/disclosure/disclosure-faq.html). * * @param target A React ref or HTML element * @param options Configuration options */ export declare function useA11yTarget( target: React.RefObject | T | null, options?: UseA11yTargetOptions ): { readonly 'aria-hidden': boolean readonly id: string | undefined readonly className: string | undefined readonly style: { readonly visibility: 'hidden' | 'visible' } & React.CSSProperties } /** * This component wraps any React element and turns it into a * disclosure target. */ export declare function Target({ closeOnEscape, portal, openClass, closedClass, openStyle, closedStyle, preventScroll, children, }: TargetProps): | React.ReactElement< any, | string | (( props: any ) => React.ReactElement< any, string | any | (new (props: any) => React.Component) > | null) | (new (props: any) => React.Component) > | React.FunctionComponentElement export declare namespace Target { var displayName: string } /** * A React hook for creating a headless close button to [WAI-ARIA authoring practices](https://www.w3.org/TR/wai-aria-practices-1.1/examples/disclosure/disclosure-faq.html). * In addition to providing accessibility props to your component, this * hook will add events for interoperability between actual