UNPKG

@ng-bootstrap/ng-bootstrap

Version:
17 lines (16 loc) 746 B
import { NgZone } from '@angular/core'; import { Observable, Subject } from 'rxjs'; export type NgbTransitionStartFn<T = any> = (element: HTMLElement, animation: boolean, context: T) => NgbTransitionEndFn | void; export type NgbTransitionEndFn = () => void; export interface NgbTransitionOptions<T> { animation: boolean; runningTransition: 'continue' | 'stop'; context?: T; } export interface NgbTransitionCtx<T> { transition$: Subject<any>; complete: () => void; context: T; } export declare const ngbRunTransition: <T>(zone: NgZone, element: HTMLElement, startFn: NgbTransitionStartFn<T>, options: NgbTransitionOptions<T>) => Observable<void>; export declare const ngbCompleteTransition: (element: HTMLElement) => void;