import { ElementRef, EventEmitter, NgZone, OnInit } from '@angular/core'; import { NgbCollapseConfig } from './collapse-config'; import * as i0 from "@angular/core"; /** * A directive to provide a simple way of hiding and showing elements on the * page. */ export declare class NgbCollapse implements OnInit { private _element; private _zone; /** * If `true`, collapse will be animated. * * Animation is triggered only when clicked on triggering element * or via the `.toggle()` function * * @since 8.0.0 */ animation: any; /** * Flag used to track if the collapse setter is invoked during initialization * or not. This distinction is made in order to avoid running the transition during initialization. */ private _afterInit; private _isCollapsed; /** * If `true`, will collapse the element or show it otherwise. */ set collapsed(isCollapsed: boolean); ngbCollapseChange: EventEmitter; /** * If `true`, will collapse horizontally. * * @since 13.1.0 */ horizontal: boolean; /** * An event emitted when the collapse element is shown, after the transition. * It has no payload. * * @since 8.0.0 */ shown: EventEmitter; /** * An event emitted when the collapse element is hidden, after the transition. * It has no payload. * * @since 8.0.0 */ hidden: EventEmitter; constructor(_element: ElementRef, config: NgbCollapseConfig, _zone: NgZone); ngOnInit(): void; /** * Triggers collapsing programmatically. * * If there is a collapsing transition running already, it will be reversed. * If the animations are turned off this happens synchronously. * * @since 8.0.0 */ toggle(open?: boolean): void; private _runTransition; private _runTransitionWithEvents; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; }