import Animator, { Options } from './animator'

/**
 * Animate the height of an element to 'auto'.
 * 
 * @param el - The element to animate
 * @param options - Animation options
 * @returns The height of the element after the animation completes.
 */
export const autoHeight = (el: HTMLElement, options?: Options) => new Animator(el).autoHeight(options)

/**
 * Animate the height of an element to '0px'.
 * 
 * @param el - The element to animate
 * @param options - Animation options
 */
export const zeroHeight = (el: HTMLElement, options?: Options) => new Animator(el).zeroHeight(options)

export { Animator as HeightAnimator }
