type ViewTransitionReturn = { finished: Promise; ready: Promise; updateCallbackDone: Promise; }; /** * Wrapper around the View Transitions API. * Uses `document.startViewTransition` when available (Chrome 111+, Safari 18+), * falls back to calling the callback directly on unsupported browsers. */ declare const startViewTransition: (callback: () => void | Promise) => ViewTransitionReturn; /** * Check if the View Transitions API is supported in the current browser. */ declare const supportsViewTransitions: () => boolean; export { startViewTransition, supportsViewTransitions }; export type { ViewTransitionReturn };