/** * FLIP-based morph animation between two element states. * * @module bquery/motion */ import type { MorphOptions } from './types'; /** * Perform a FLIP-based morph animation between two elements. * * Captures the bounding rect of the `from` element, hides it, shows the * `to` element, then animates the `to` element from the `from` position * using CSS transforms and opacity. * * @param from - The source element (will be hidden at the end) * @param to - The destination element (will be shown and animated into place) * @param options - Morph animation options * @returns Promise that resolves when the morph completes * * @example * ```ts * const card = document.querySelector('.card'); * const detail = document.querySelector('.detail'); * await morphElement(card, detail, { duration: 400, easing: 'ease-out' }); * ``` */ export declare const morphElement: (from: Element, to: Element, options?: MorphOptions) => Promise; //# sourceMappingURL=morph.d.ts.map