import * as solid_js from 'solid-js'; import { Accessor, JSX, ValidComponent } from 'solid-js'; import { ElementOf, PolymorphicProps } from './polymorphic/index.js'; import { a as ButtonRootCommonProps, d as ButtonRootRenderProps } from './button-root-da654b3e.js'; interface CollapsibleDataSet { "data-expanded": string | undefined; "data-closed": string | undefined; "data-disabled": string | undefined; } interface CollapsibleContextValue { dataset: Accessor; isOpen: Accessor; disabled: Accessor; shouldMount: Accessor; contentId: Accessor; toggle: () => void; generateId: (part: string) => string; registerContentId: (id: string) => () => void; } declare function useCollapsibleContext(): CollapsibleContextValue; interface CollapsibleContentOptions { } interface CollapsibleContentCommonProps { id: string; ref: T | ((el: T) => void); style: JSX.CSSProperties | string; } interface CollapsibleContentRenderProps extends CollapsibleContentCommonProps, CollapsibleDataSet { } type CollapsibleContentProps = CollapsibleContentOptions & Partial>>; /** * Contains the content to be rendered when the collapsible is expanded. */ declare function CollapsibleContent(props: PolymorphicProps>): JSX.Element; interface CollapsibleRootOptions { /** The controlled open state of the collapsible. */ open?: boolean; /** * The default open state when initially rendered. * Useful when you do not need to control the open state. */ defaultOpen?: boolean; /** Event handler called when the open state of the collapsible changes. */ onOpenChange?: (isOpen: boolean) => void; /** Whether the collapsible is disabled. */ disabled?: boolean; /** * Used to force mounting the collapsible content when more control is needed. * Useful when controlling animation with SolidJS animation libraries. */ forceMount?: boolean; } interface CollapsibleRootCommonProps { id: string; } interface CollapsibleRootRenderProps extends CollapsibleRootCommonProps, CollapsibleDataSet { } type CollapsibleRootProps = CollapsibleRootOptions & Partial>>; /** * An interactive component which expands/collapses a content. */ declare function CollapsibleRoot(props: PolymorphicProps>): solid_js.JSX.Element; interface CollapsibleTriggerOptions { } interface CollapsibleTriggerCommonProps extends ButtonRootCommonProps { ref: T | ((el: T) => void); onClick: JSX.EventHandlerUnion; } interface CollapsibleTriggerRenderProps extends CollapsibleTriggerCommonProps, ButtonRootRenderProps { "aria-expanded": boolean; "aria-controls": string | undefined; } type CollapsibleTriggerProps = CollapsibleTriggerOptions & Partial>>; /** * The button that expands/collapses the collapsible content. */ declare function CollapsibleTrigger(props: PolymorphicProps>): JSX.Element; export { CollapsibleRoot as C, CollapsibleContent as a, CollapsibleTrigger as b, CollapsibleContentCommonProps as c, CollapsibleContentOptions as d, CollapsibleContentProps as e, CollapsibleContentRenderProps as f, CollapsibleContextValue as g, CollapsibleRootCommonProps as h, CollapsibleRootOptions as i, CollapsibleRootProps as j, CollapsibleRootRenderProps as k, CollapsibleTriggerCommonProps as l, CollapsibleTriggerOptions as m, CollapsibleTriggerProps as n, CollapsibleTriggerRenderProps as o, CollapsibleDataSet as p, useCollapsibleContext as u };