import { ComponentDefaultProps } from '@justeattakeaway/pie-webc-core'; import { CSSResult } from 'lit'; import { GenericConstructor } from '@justeattakeaway/pie-webc-core'; import { PieElement } from '@justeattakeaway/pie-webc-core/src/internals/PieElement'; import { RTLInterface } from '@justeattakeaway/pie-webc-core'; import { TemplateResult } from 'lit-html'; export declare interface AccordionProps { /** * When true, the accordion panel is expanded. */ isOpen?: boolean; /** * The text content for the accordion heading button. */ headingLabel: string; /** * The HTML heading element level to use for the trigger wrapper (h1-h6). * Defaults to h2. */ headingLevel?: typeof headingLevels[number]; /** * Optional secondary line of text displayed below the heading label. */ secondaryLabel?: string; /** * Controls the responsive layout behaviour. * 'auto' responds to container width via CSS container queries; * 'narrow' and 'wide' force the respective layout. */ size?: typeof sizes[number]; /** * When true, applies reduced-emphasis typography to the heading. */ isEmphasisReduced?: boolean; /** * When true, hides the pie-divider at the bottom of the accordion. */ isDividerHidden?: boolean; } export declare type AccordionToggleDetail = { isOpen: boolean; }; export declare type DefaultProps = ComponentDefaultProps>; export declare const defaultProps: DefaultProps; export declare const headingLevels: readonly ["h1", "h2", "h3", "h4", "h5", "h6"]; /** * @tagname pie-accordion * @slot icon - Optional leading icon displayed in the trigger. * @slot - Default slot for the accordion panel content. * @event {Event} toggle - Dispatched when the trigger is clicked */ export declare class PieAccordion extends PieAccordion_base implements AccordionProps { isOpen: boolean; headingLabel: string; headingLevel: "h1" | "h2" | "h3" | "h4" | "h5" | "h6"; secondaryLabel: AccordionProps['secondaryLabel']; size: "auto" | "narrow" | "wide"; isEmphasisReduced: boolean; isDividerHidden: boolean; private readonly _headingId; private readonly _buttonId; private readonly _panelId; private _handleTriggerClick; render(): TemplateResult; static styles: CSSResult; } declare const PieAccordion_base: GenericConstructor & typeof PieElement; export declare const sizes: readonly ["auto", "narrow", "wide"]; export { }