import * as React from 'react'; import { Primitive } from '@radix-ui/react-primitive'; type Scope = { [scopeName: string]: React.Context[]; } | undefined; type ScopeHook = (scope: Scope) => { [__scopeProp: string]: Scope; }; interface CreateScope { scopeName: string; (): ScopeHook; } declare const createCollapsibleScope: CreateScope; type PrimitiveDivProps = React.ComponentPropsWithoutRef; interface CollapsibleProps extends PrimitiveDivProps { defaultOpen?: boolean; open?: boolean; disabled?: boolean; onOpenChange?(open: boolean): void; } declare const Collapsible: React.ForwardRefExoticComponent>; type PrimitiveButtonProps = React.ComponentPropsWithoutRef; interface CollapsibleTriggerProps extends PrimitiveButtonProps { } declare const CollapsibleTrigger: React.ForwardRefExoticComponent>; interface CollapsibleContentProps extends Omit { /** * Used to force mounting when more control is needed. Useful when * controlling animation with React animation libraries. */ forceMount?: true; } declare const CollapsibleContent: React.ForwardRefExoticComponent>; interface CollapsibleContentImplProps extends PrimitiveDivProps { present: boolean; } declare const Root: React.ForwardRefExoticComponent>; declare const Trigger: React.ForwardRefExoticComponent>; declare const Content: React.ForwardRefExoticComponent>; export { Collapsible, CollapsibleContent, type CollapsibleContentProps, type CollapsibleProps, CollapsibleTrigger, type CollapsibleTriggerProps, Content, Root, Trigger, createCollapsibleScope };