import * as React from 'react';
import type { Override } from '../helpers/overrides';
import { STATE_CHANGE_TYPE } from './constants';
export declare type AccordionState = {
    expanded: Array<React.Key>;
};
export declare type PanelState = {
    expanded: boolean;
};
export declare type StateChangeType = keyof typeof STATE_CHANGE_TYPE;
export declare type StateReducer = (stateChangeType: StateChangeType, nextState: AccordionState, currentState: AccordionState) => AccordionState;
export declare type PanelStateReducer = (stateChangeType: StateChangeType, nextState: PanelState, currentState: PanelState) => PanelState;
export declare type AccordionOverrides = {
    Content?: Override;
    ContentAnimationContainer?: Override;
    Header?: Override;
    PanelContainer?: Override;
    Root?: Override;
    ToggleIcon?: Override;
    ToggleIconGroup?: Override;
};
export declare type PanelOverrides = {
    PanelContainer?: Override;
    Header?: Override;
    ToggleIcon?: Override;
    ToggleIconGroup?: Override;
    Content?: Override;
    ContentAnimationContainer?: Override;
};
export declare type OnChangeHandler = (a: {
    expanded: boolean;
}) => unknown;
export declare type AccordionOnChangeHandler = (a: {
    expanded: Array<React.Key>;
}) => unknown;
export declare type AccordionProps = {
    /** Determines how many panels may be expanded at a time. If set to
     * true it will collapse a current panel when a new panel is expanded.
     * If set to false more than one panel may be expanded at a time. */
    accordion?: boolean;
    /** Accordion expandable items. See Panel API below for reference. */
    children: React.ReactNode;
    /** If set to true all its children panels will be disabled from toggling. */
    disabled?: boolean;
    initialState?: AccordionState;
    /** Handler called each time a panel is toggled. expanded prop is an array
     * of Panel keys that are currently expanded. */
    onChange?: AccordionOnChangeHandler;
    overrides?: AccordionOverrides;
    /** Handler called each time the component state changes.
     * Used to override default state-change functionality. */
    stateReducer: StateReducer;
    /**
     * Allows users to render all child content whether a panel is expanded or not
     * for SEO purposed
     */
    renderAll?: boolean;
};
export declare type StatelessAccordionOnChangeHandler = (a: {
    expanded: Array<React.Key>;
    key: React.Key;
}) => unknown;
export declare type StatelessAccordionProps = {
    /** Determines how many panels may be expanded at a time. If set to
     * true it will collapse a current panel when a new panel is expanded.
     * If set to false more than one panel may be expanded at a time. */
    accordion?: boolean;
    /** Accordion expandable items. See Panel API below for reference. */
    children: React.ReactNode;
    /** If set to true all its children panels will be disabled from toggling. */
    disabled?: boolean;
    /** List of Panel keys which are expanded. */
    expanded: Array<React.Key>;
    /** Handler called each time a panel is toggled. */
    onChange?: StatelessAccordionOnChangeHandler;
    overrides?: AccordionOverrides & PanelOverrides;
    /**
     * Allows users to render all child content whether a panel is expanded or not
     * for SEO purposed
     */
    renderPanelContent?: boolean;
    /**
     * Allows users to render all child content whether a panel is expanded or not
     * for SEO purposed
     */
    renderAll?: boolean;
};
declare type SharedPanelProps = {
    /** The content visible when Panel is expanded. */
    children: React.ReactNode;
    /** Defaults to the disabled value provided by the parent Accordion component. */
    disabled?: boolean;
    /** Id for a panel, when provided populates aria-controls
     * attribute for panel button and content
     * */
    'aria-controls'?: string;
    /** The key of a Panel. Used to maintain list of expanded panels.
     * Must be unique across children of the Accordion. */
    key?: React.Key;
    /** Handler for individual Panel change events. */
    onChange?: OnChangeHandler;
    /** Handler for the Header's click events. */
    onClick?: (e: Event) => unknown;
    /** Handler for the Header's keyDown events. */
    onKeyDown?: (e: KeyboardEvent) => unknown;
    overrides?: PanelOverrides;
    /** The title of an accordion panel. */
    title?: React.ReactNode;
    /**
     * Allows users to render all child content whether a panel is expanded or not
     * for SEO purposed
     */
    renderPanelContent?: boolean;
    /**
     * Allows users to render all child content whether a panel is expanded or not
     * for SEO purposed
     */
    renderAll?: boolean;
};
export declare type PanelProps = SharedPanelProps & {
    /** Defines if the panel is expanded. If set to true the panel is rendered expanded. */
    expanded?: boolean;
};
declare type SharedStatefulPanelContainerProps = {
    /** Initial state of a stateful panel component.
     * The expanded prop indicates if the panel is initially expanded.
     * If set to true the panel will be expanded initially */
    initialState?: PanelState;
    onChange?: OnChangeHandler;
    stateReducer?: PanelStateReducer;
};
export declare type StatefulPanelContainerProps = SharedStatefulPanelContainerProps & {
    children: (props: Omit<PanelProps, 'children'>) => React.ReactNode;
};
export declare type StatefulPanelProps = SharedStatefulPanelContainerProps & SharedPanelProps;
export declare type SharedStylePropsArg = {
    $color?: string;
    $disabled: boolean | undefined | null;
    $expanded?: boolean | null;
    $size?: string | number;
    $isFocusVisible: boolean;
};
export {};
