import * as React from 'react';
import type { PolymorphicForwardRefComponent } from '../../utils/index.js';
type ExpandableBlockOwnProps = {
/**
* Status of the block.
* When set, a colored status icon is shown at the end of the main text.
*/
status?: 'positive' | 'negative' | 'warning' | 'informational';
/**
* Whether or not to show the block's content.
* @default false
*/
isExpanded?: boolean;
/**
* Callback function for toggling an expansion state.
*/
onToggle?: (isExpanding: boolean) => void;
/**
* Content in the expandable block.
*/
children: React.ReactNode;
/**
* Modify size of the ExpandableBlock.
* @default 'default'
*/
size?: 'default' | 'small';
/**
* Style of the ExpandableBlock.
* Use 'borderless' to hide outline.
* @default 'default'
*/
styleType?: 'default' | 'borderless';
/**
* Disables ExpandableBlock.
* @default false
*/
disabled?: boolean;
};
export declare const ExpandableBlockWrapper: PolymorphicForwardRefComponent<"div", ExpandableBlockOwnProps>;
type ExpandableBlockTriggerOwnProps = {
label?: React.ReactNode;
caption?: React.ReactNode;
expandIcon?: React.ReactNode;
endIcon?: React.ReactNode;
};
export declare const ExpandableBlockTrigger: PolymorphicForwardRefComponent<"div", ExpandableBlockTriggerOwnProps>;
type ExpandableBlockContentOwnProps = {
innerProps?: React.ComponentPropsWithoutRef<'div'>;
};
export declare const ExpandableBlockContent: PolymorphicForwardRefComponent<"div", ExpandableBlockContentOwnProps>;
/**
* Expandable block with customizable Title, Caption, Content and EndIcon subcomponents.
* @example
*
*
*
*
*
*
*
*
*
*
*
*/
export declare const ExpandableBlock: PolymorphicForwardRefComponent<"div", ExpandableBlockOwnProps & {
title?: React.ReactNode;
} & Pick> & {
Wrapper: PolymorphicForwardRefComponent<"div", ExpandableBlockOwnProps>;
/**
* `Header` container that contains `ExpandIcon`, `LabelArea` and `EndIcon` subcomponents
* @example
*
*
*
*
*
*/
Trigger: PolymorphicForwardRefComponent<"div", ExpandableBlockTriggerOwnProps>;
/**
* The expanding icon on the left of header
*/
ExpandIcon: PolymorphicForwardRefComponent<"span", {}>;
/**
* `LabelArea` subcomponent that contains `Title` and `Caption`
* @example
*
* Title
* Caption
*
*/
LabelArea: PolymorphicForwardRefComponent<"span", {}>;
/**
* The main text displayed on the block header, regardless of state.
*/
Title: PolymorphicForwardRefComponent<"button", {}>;
/**
* Small note displayed below title, regardless of state.
*/
Caption: PolymorphicForwardRefComponent<"div", {}>;
/**
* Svg icon displayed at the end of the main text.
* Will override status icon if specified. Used inside `Header` subcomponent.
* @example
*
*
*
*/
EndIcon: PolymorphicForwardRefComponent<"span", Omit, HTMLSpanElement>, "fill" | "as" | "key" | "size" | keyof React.HTMLAttributes | "padded"> & {
size?: "auto" | "small" | "medium" | "large" | import("../../utils/types.js").AnyString;
fill?: "default" | "positive" | "informational" | "negative" | "warning" | import("../../utils/types.js").AnyString;
padded?: boolean;
} & Omit, HTMLSpanElement>, "ref"> & {
as?: "span" | undefined;
}, "ref">>;
/**
* Content shown in the block's body when fully expanded.
* @example
*
* Content
*
*/
Content: PolymorphicForwardRefComponent<"div", ExpandableBlockContentOwnProps>;
};
export {};