import * as react from 'react'; import { ReactNode, SyntheticEvent, ComponentProps } from 'react'; import * as react_jsx_runtime from 'react/jsx-runtime'; import { InternalProps, StyledComponentProps, OmitInternalProps } from '../../shared/src/types.js'; import '../../styling/src/styled-system/props-handler.js'; import 'csstype'; import '../../styling/src/useResponsiveValue.js'; import '../../styling/src/BreakpointProvider.js'; import '../../shared/src/type-fest.js'; import '../../styling/src/styled-system/StylingContext.js'; declare const DefaultElement = "div"; interface InnerDisclosureProps extends InternalProps, StyledComponentProps { /** * React children. */ children: ReactNode; /** * The initial value of `open` when uncontrolled. */ defaultOpen?: boolean; /** * Called when the open state change. * @param {SyntheticEvent} event - React's original event. * @param {bool} isOpen - Whether or not the content is visible. * @returns {void} */ onOpenChange?: (event: SyntheticEvent, isOpen: boolean) => void; /** * A controlled open value. */ open?: boolean | null; } declare function InnerDisclosure({ as, children, defaultOpen, forwardedRef, id, onOpenChange, open, ...rest }: InnerDisclosureProps): react_jsx_runtime.JSX.Element; declare namespace InnerDisclosure { var defaultElement: string; } /** * The disclosure component is used to create regions of content that can expand/collapse with a simple animation. * * [Documentation](https://wl-orbiter-website.netlify.app/?path=/docs/disclosure--default-story) */ declare const Disclosure: react.ForwardRefExoticComponent, "ref"> & react.RefAttributes>; type DisclosureProps = ComponentProps; export { Disclosure, type DisclosureProps, InnerDisclosure, type InnerDisclosureProps };