| 1 | export {} |
| 2 | |
| 3 | declare global { |
| 4 | interface Document { |
| 5 | startViewTransition?: (callback: () => Promise<void> | void) => ViewTransition |
| 6 | } |
| 7 | |
| 8 | interface ViewTransition { |
| 9 | readonly ready: Promise<undefined> |
| 10 | readonly finished: Promise<undefined> |
| 11 | readonly updateCallbackDone: Promise<undefined> |
| 12 | skipTransition: () => void |
| 13 | } |
| 14 | |
| 15 | interface CSSStyleDeclaration { |
| 16 | viewTransitionName: string |
| 17 | } |
| 18 | } |