import type { ComponentPropsWithoutRef, ReactNode } from 'react'; import type { Direction } from '../../utils/primitiveProps.cjs'; import type { SxProp } from '../Layout/sx.cjs'; interface AccordionRootBase extends Omit, 'defaultValue' | 'onChange' | 'dir'> { /** Disable every item. */ disabled?: boolean; /** Reading direction. */ dir?: Direction; /** Layout axis. Default: `vertical`. */ orientation?: 'horizontal' | 'vertical'; } type RootSingle = AccordionRootBase & { type: 'single'; /** Controlled open item. */ value?: string; /** Uncontrolled initial open item. */ defaultValue?: string; /** Fires when the open item changes. */ onValueChange?: (value: string) => void; /** Allow closing the open item by clicking it again. */ collapsible?: boolean; }; type RootMultiple = AccordionRootBase & { type: 'multiple'; /** Controlled set of open items. */ value?: string[]; /** Uncontrolled initial set of open items. */ defaultValue?: string[]; /** Fires when the open set changes. */ onValueChange?: (value: string[]) => void; /** Start with every direct `AccordionItem` open (uncontrolled; ignored when `defaultValue`/`value` is set). */ expandAll?: boolean; }; export type AccordionProps = (RootSingle | RootMultiple) & { variant?: 'plain' | 'bordered' | 'separated'; /** * Remember the open item(s) in localStorage under this key and restore them on * mount (uncontrolled accordions only). Storage failures are ignored. */ persistKey?: string; /** * One-off CSS, same as `Box`'s `sx`: each value may be a scalar or a * responsive breakpoint map (`{ base, sm, md, lg, xl }`). Scalar-only sx * merges into inline style; responsive sx injects a scoped class. */ sx?: SxProp; }; export declare const Accordion: import("react").ForwardRefExoticComponent>; export interface AccordionItemProps extends ComponentPropsWithoutRef<'div'> { /** Value identifying this item. */ value: string; /** Disables just this item. */ disabled?: boolean; /** One-off CSS, same as `Box`'s `sx` (scalar or responsive `{ base, sm, md, lg, xl }` map). */ sx?: SxProp; } export declare const AccordionItem: import("react").ForwardRefExoticComponent>; export interface AccordionTriggerProps extends ComponentPropsWithoutRef<'button'> { /** Optional leading icon in the trigger row. */ icon?: ReactNode; /** Hide the chevron indicator. */ hideIndicator?: boolean; /** One-off CSS, same as `Box`'s `sx` (scalar or responsive `{ base, sm, md, lg, xl }` map). */ sx?: SxProp; } export declare const AccordionTrigger: import("react").ForwardRefExoticComponent>; export interface AccordionContentProps extends ComponentPropsWithoutRef<'div'> { /** Keep mounted while collapsed (useful for animations). */ forceMount?: true; /** One-off CSS, same as `Box`'s `sx` (scalar or responsive `{ base, sm, md, lg, xl }` map). */ sx?: SxProp; } export declare const AccordionContent: import("react").ForwardRefExoticComponent>; export {};