import * as framer_motion from 'framer-motion'; import { AccordionItemBaseProps, AccordionItemIndicatorProps } from './base/accordion-item-base.js'; import * as react from 'react'; import * as tailwind_variants from 'tailwind-variants'; import * as _nextui_org_system from '@nextui-org/system'; import { HTMLNextUIProps, PropGetter } from '@nextui-org/system'; import { AccordionItemVariantProps } from '@nextui-org/theme'; import { ReactRef } from '@nextui-org/react-utils'; import { NodeWithProps } from '@nextui-org/aria-utils'; import { TreeState } from '@react-stately/tree'; import '@react-types/shared'; interface Props extends HTMLNextUIProps<"div"> { /** * Ref to the DOM node. */ ref?: ReactRef; /** * The item node. */ item: NodeWithProps>; /** * The accordion tree state. */ state: TreeState; /** * Current focused key. */ focusedKey: React.Key | null; /** * Callback fired when the focus state changes. */ onFocusChange?: (isFocused: boolean, key?: React.Key) => void; } type UseAccordionItemProps = Props & AccordionItemVariantProps & Omit; declare function useAccordionItem(props: UseAccordionItemProps): { Component: _nextui_org_system.As; HeadingComponent: _nextui_org_system.As; item: NodeWithProps>; slots: { base: (slotProps?: ({ variant?: "splitted" | undefined; isCompact?: boolean | undefined; isDisabled?: boolean | undefined; hideIndicator?: boolean | undefined; disableAnimation?: boolean | undefined; disableIndicatorAnimation?: boolean | undefined; } & tailwind_variants.ClassProp) | undefined) => string; heading: (slotProps?: ({ variant?: "splitted" | undefined; isCompact?: boolean | undefined; isDisabled?: boolean | undefined; hideIndicator?: boolean | undefined; disableAnimation?: boolean | undefined; disableIndicatorAnimation?: boolean | undefined; } & tailwind_variants.ClassProp) | undefined) => string; trigger: (slotProps?: ({ variant?: "splitted" | undefined; isCompact?: boolean | undefined; isDisabled?: boolean | undefined; hideIndicator?: boolean | undefined; disableAnimation?: boolean | undefined; disableIndicatorAnimation?: boolean | undefined; } & tailwind_variants.ClassProp) | undefined) => string; startContent: (slotProps?: ({ variant?: "splitted" | undefined; isCompact?: boolean | undefined; isDisabled?: boolean | undefined; hideIndicator?: boolean | undefined; disableAnimation?: boolean | undefined; disableIndicatorAnimation?: boolean | undefined; } & tailwind_variants.ClassProp) | undefined) => string; indicator: (slotProps?: ({ variant?: "splitted" | undefined; isCompact?: boolean | undefined; isDisabled?: boolean | undefined; hideIndicator?: boolean | undefined; disableAnimation?: boolean | undefined; disableIndicatorAnimation?: boolean | undefined; } & tailwind_variants.ClassProp) | undefined) => string; titleWrapper: (slotProps?: ({ variant?: "splitted" | undefined; isCompact?: boolean | undefined; isDisabled?: boolean | undefined; hideIndicator?: boolean | undefined; disableAnimation?: boolean | undefined; disableIndicatorAnimation?: boolean | undefined; } & tailwind_variants.ClassProp) | undefined) => string; title: (slotProps?: ({ variant?: "splitted" | undefined; isCompact?: boolean | undefined; isDisabled?: boolean | undefined; hideIndicator?: boolean | undefined; disableAnimation?: boolean | undefined; disableIndicatorAnimation?: boolean | undefined; } & tailwind_variants.ClassProp) | undefined) => string; subtitle: (slotProps?: ({ variant?: "splitted" | undefined; isCompact?: boolean | undefined; isDisabled?: boolean | undefined; hideIndicator?: boolean | undefined; disableAnimation?: boolean | undefined; disableIndicatorAnimation?: boolean | undefined; } & tailwind_variants.ClassProp) | undefined) => string; content: (slotProps?: ({ variant?: "splitted" | undefined; isCompact?: boolean | undefined; isDisabled?: boolean | undefined; hideIndicator?: boolean | undefined; disableAnimation?: boolean | undefined; disableIndicatorAnimation?: boolean | undefined; } & tailwind_variants.ClassProp) | undefined) => string; } & { base: (slotProps?: ({ variant?: "splitted" | undefined; isCompact?: boolean | undefined; isDisabled?: boolean | undefined; hideIndicator?: boolean | undefined; disableAnimation?: boolean | undefined; disableIndicatorAnimation?: boolean | undefined; } & tailwind_variants.ClassProp) | undefined) => string; heading: (slotProps?: ({ variant?: "splitted" | undefined; isCompact?: boolean | undefined; isDisabled?: boolean | undefined; hideIndicator?: boolean | undefined; disableAnimation?: boolean | undefined; disableIndicatorAnimation?: boolean | undefined; } & tailwind_variants.ClassProp) | undefined) => string; trigger: (slotProps?: ({ variant?: "splitted" | undefined; isCompact?: boolean | undefined; isDisabled?: boolean | undefined; hideIndicator?: boolean | undefined; disableAnimation?: boolean | undefined; disableIndicatorAnimation?: boolean | undefined; } & tailwind_variants.ClassProp) | undefined) => string; startContent: (slotProps?: ({ variant?: "splitted" | undefined; isCompact?: boolean | undefined; isDisabled?: boolean | undefined; hideIndicator?: boolean | undefined; disableAnimation?: boolean | undefined; disableIndicatorAnimation?: boolean | undefined; } & tailwind_variants.ClassProp) | undefined) => string; indicator: (slotProps?: ({ variant?: "splitted" | undefined; isCompact?: boolean | undefined; isDisabled?: boolean | undefined; hideIndicator?: boolean | undefined; disableAnimation?: boolean | undefined; disableIndicatorAnimation?: boolean | undefined; } & tailwind_variants.ClassProp) | undefined) => string; titleWrapper: (slotProps?: ({ variant?: "splitted" | undefined; isCompact?: boolean | undefined; isDisabled?: boolean | undefined; hideIndicator?: boolean | undefined; disableAnimation?: boolean | undefined; disableIndicatorAnimation?: boolean | undefined; } & tailwind_variants.ClassProp) | undefined) => string; title: (slotProps?: ({ variant?: "splitted" | undefined; isCompact?: boolean | undefined; isDisabled?: boolean | undefined; hideIndicator?: boolean | undefined; disableAnimation?: boolean | undefined; disableIndicatorAnimation?: boolean | undefined; } & tailwind_variants.ClassProp) | undefined) => string; subtitle: (slotProps?: ({ variant?: "splitted" | undefined; isCompact?: boolean | undefined; isDisabled?: boolean | undefined; hideIndicator?: boolean | undefined; disableAnimation?: boolean | undefined; disableIndicatorAnimation?: boolean | undefined; } & tailwind_variants.ClassProp) | undefined) => string; content: (slotProps?: ({ variant?: "splitted" | undefined; isCompact?: boolean | undefined; isDisabled?: boolean | undefined; hideIndicator?: boolean | undefined; disableAnimation?: boolean | undefined; disableIndicatorAnimation?: boolean | undefined; } & tailwind_variants.ClassProp) | undefined) => string; } & {}; classNames: { base?: any; heading?: any; startContent?: any; indicator?: any; titleWrapper?: any; title?: any; subtitle?: any; content?: any; trigger?: any; }; domRef: react.RefObject; indicator: react.ReactNode | ((props: AccordionItemIndicatorProps) => react.ReactNode); children: react.ReactNode; title: string | (string & react.ReactElement>) | (string & react.ReactFragment) | (string & react.ReactPortal) | undefined; subtitle: react.ReactNode; startContent: react.ReactNode; isOpen: boolean; isDisabled: boolean; hideIndicator: boolean; keepContentMounted: boolean; disableAnimation: boolean; motionProps: framer_motion.HTMLMotionProps<"section"> | undefined; getBaseProps: PropGetter, _nextui_org_system.DOMAttributes<_nextui_org_system.DOMElement>>; getHeadingProps: PropGetter, _nextui_org_system.DOMAttributes<_nextui_org_system.DOMElement>>; getButtonProps: PropGetter, _nextui_org_system.DOMAttributes<_nextui_org_system.DOMElement>>; getContentProps: PropGetter, _nextui_org_system.DOMAttributes<_nextui_org_system.DOMElement>>; getIndicatorProps: PropGetter, _nextui_org_system.DOMAttributes<_nextui_org_system.DOMElement>>; getTitleProps: PropGetter, _nextui_org_system.DOMAttributes<_nextui_org_system.DOMElement>>; getSubtitleProps: PropGetter, _nextui_org_system.DOMAttributes<_nextui_org_system.DOMElement>>; }; type UseAccordionItemReturn = ReturnType; export { Props, UseAccordionItemProps, UseAccordionItemReturn, useAccordionItem };