export declare class ExpanderClient { /** * The container element for all the elements that should be showned or be hidden. */ container: HTMLElement | null; /** * An optional element to which the expander will dispatch the events to. * If not provided, events will not be dispatched. */ private dispatchBoundary?; /** * Element that will be showned at the end of the content when the expander is expanded. * We use this to track when the entire post is read. */ private endContent; /** * Track the entire read of a truncated post */ private trackingEntireRead; /** * The button that will expand the content */ private expanderButton; /** * The button that will collapse the content */ private collapserButton; /** * The tracking data that will be sent when the entire post is read */ private trackingData; /** * * @param el * @param dispatchBoundary */ constructor(el: HTMLElement, dispatchBoundary?: Element | Document | null, trackingData?: Record); expand(): void; collapse(): void; private handleExpand; private handleCollapse; destroy(): void; static init(data?: { rootElement?: HTMLElement | null; dispatchBoundary?: Element | Document | null; trackingData?: Record; }): ExpanderClient[]; } export default ExpanderClient;