/** * Will execute a series of animation promises in sequence. * This is useful for chaining animations where each step depends on the * previous one completing before starting the next. * * @param {Array<() => Promise>} animations - The array of animation functions. * @returns {Object} - An object with a `start` method to begin the timeline. * * @example * const { fadeOut } = useFade(this.ref); * const { collapse } = useCollapse(this.ref); * * timeline(fadeOut, collapse).start(); */ declare const timeline: (...animations: Array<() => Promise>) => { start: () => Promise; }; /** * Will execute a series of animation promises in parallel. * This is useful for running multiple animations simultaneously. * * @param {Array<() => Promise>} animations - The array of animation functions. * @returns {Object} - An object with a `start` method to begin the parallel animations. * * @example * const { fadeOut } = useFade(this.ref); * const { slideOut } = useSlide(this.containerRef); * * parallel(fadeOut, slideOut).start(); */ declare const parallel: (...animations: Array<() => Promise>) => { start: () => Promise; }; export { timeline, parallel };