import type { GestureResponderEvent } from 'react-native'; import { type TransitionStatus } from '../../internals/useTransitionStatus'; import type { CollapsibleRoot } from './CollapsibleRoot'; export declare function useCollapsibleRoot(parameters: UseCollapsibleRootParameters): UseCollapsibleRootReturnValue; export interface UseCollapsibleRootParameters { /** * Whether the collapsible panel is currently open. * * To render an uncontrolled collapsible, use the `defaultOpen` prop instead. */ open?: boolean | undefined; /** * Whether the collapsible panel is initially open. * * To render a controlled collapsible, use the `open` prop instead. * @default false */ defaultOpen?: boolean | undefined; /** * Event handler called when the panel is opened or closed. */ onOpenChange: (open: boolean, eventDetails: CollapsibleRoot.ChangeEventDetails) => void; /** * Whether the component should ignore user interaction. * @default false */ disabled: boolean; } export interface UseCollapsibleRootReturnValue { /** * Whether the component should ignore user interaction. */ disabled: boolean; handleTrigger: (event: GestureResponderEvent) => void; /** * Whether the collapsible panel is mounted for transition purposes. This can * be `false` while the element remains rendered when `keepMounted` is enabled. */ mounted: boolean; /** * Whether the collapsible panel is currently open. */ open: boolean; panelId: string | undefined; setMounted: (nextMounted: boolean) => void; setOpen: (open: boolean) => void; transitionStatus: TransitionStatus; } //# sourceMappingURL=useCollapsibleRoot.d.ts.map