import { AnimationReferenceMetadata, AnimationTriggerMetadata } from '@angular/animations'; /** * `animateVerticalNgIf` is a function that returns is an array of `AnimationTriggerMetadata` * compatible with Angular's animation DSL language. * * `animateVerticalNgIf` specifies animations that work in concert with animation triggers on * on an element using `*ngIf` and subcomponents that specify a well known trigger. * * ### Usage * * The `animateVerticalNgIf` function accepts an object parameter with a set of * properties: inDuration, outDuration, maxHeight, and stagger: * * - `stagger` is the amount of time to be applied on the parent ngIf animation before * triggering the `childAnimations`. * - `inDuration` is the duration in ms for the `void -> *` animation. The default is 300. * - `outDuration` is the duration in ms for the `* -> void` animation. The default is 300. * - `maxHeight` is the height the ngIf'd contents should animate to. The default is `200px`. * * ```typescript * // The function returns an array of AnimationTriggerMetadata and can specified in 2 ways: * // The first is when no other animations are being specified: * animations: animateVerticalNgIf({ params: { maxHeight: '285px' } }) * // If other animations are needed on the component, spread the returned array like: * animations: [ * ...animateVerticalNgIf({ params: { maxHeight: '285px' } }), * // other animations here * ] * ``` * * The template to support this should be coded like: * ```html *
*
* *
*
* ``` * */ export declare function animateVerticalNgIf(params: {}): AnimationTriggerMetadata[]; export declare let ngIfVertical: AnimationReferenceMetadata; export declare let ngIfVerticalIn: AnimationReferenceMetadata; export declare let ngIfVerticalOut: AnimationReferenceMetadata; export declare function animateSlide(params?: {}): AnimationTriggerMetadata[];