import { Ref } from 'vue'; interface ViewTransitionComposable { /** * Indicates if transition is currently in progress */ isRunning: Ref; /** * Starts a view transition. The provided `update` function will be called during the transition. */ startTransition: (update: () => void | Promise) => Promise; } /** * A generic composable for running View Transitions. * * In order to setup view transitions, we need to provide `transition-name` in * CSS to the components we want to transition and then apply old & new * styles to them via the following selectors. At minimum, you should provide * the animation-duration * * ```css * ::view-transition-old() {} * ::view-transition-new() {} * ``` */ export declare function useViewTransition(): ViewTransitionComposable; export {};