/** * @sc4rfurryx/proteusjs/transitions * View Transitions API wrapper with safe fallbacks * * @version 2.0.0 * @author sc4rfurry * @license MIT */ interface TransitionOptions { name?: string; duration?: number; onBefore?: () => void; onAfter?: () => void; allowInterrupt?: boolean; } interface NavigateOptions { name?: string; prerender?: boolean; } /** * One API for animating DOM state changes and cross-document navigations * using the View Transitions API with safe fallbacks. */ declare function transition(run: () => Promise | any, opts?: TransitionOptions): Promise; /** * MPA-friendly navigation with view transitions when supported */ declare function navigate(url: string, opts?: NavigateOptions): Promise; declare const _default: { transition: typeof transition; navigate: typeof navigate; }; export { _default as default, navigate, transition }; export type { NavigateOptions, TransitionOptions };