1 | import type { View } from '../core/view';
|
2 | import type { BackstackEntry } from '../frame';
|
3 | export type SharedTransitionTagPropertiesToMatch = {
|
4 | |
5 |
|
6 |
|
7 | view?: Array<string>;
|
8 | |
9 |
|
10 |
|
11 | layer?: Array<string>;
|
12 | };
|
13 | export type SharedElementSettings = { view: View; startFrame: any; endFrame?: any; startOpacity?: number; endOpacity?: number; scale?: { x?: number; y?: number }; zIndex?: number; startTransform?: any; snapshot?: any; propertiesToMatch?: SharedTransitionTagPropertiesToMatch };
|
14 | export type TransitionNavigationType = 'page' | 'modal';
|
15 | export interface TransitionInteractiveState {
|
16 | started?: false;
|
17 | added?: boolean;
|
18 | transitionContext?: any;
|
19 | propertyAnimator?: any;
|
20 | }
|
21 |
|
22 | export declare class Transition {
|
23 | id: number;
|
24 | |
25 |
|
26 |
|
27 | name?: string;
|
28 | transitionController?: any;
|
29 | interactiveController?: any;
|
30 | presented?: any;
|
31 | presenting?: any;
|
32 | sharedElements?: {
|
33 | presented?: Array<SharedElementSettings>;
|
34 | presenting?: Array<SharedElementSettings>;
|
35 |
|
36 | independent?: Array<SharedElementSettings & { isPresented?: boolean }>;
|
37 | };
|
38 | static AndroidTransitionType?: { enter?: string; exit?: string; popEnter?: string; popExit?: string };
|
39 | constructor(duration?: number, nativeCurve?: any );
|
40 | getDuration(): number;
|
41 | setDuration(value: number): void;
|
42 | getCurve(): any;
|
43 | animateIOSTransition(transitionContext: any , fromViewCtrl: any , toViewCtrl: any , operation: any ): void;
|
44 | createAndroidAnimator(transitionType: string): any;
|
45 |
|
46 | setupInteractiveGesture?(startCallback: () => void, view: View): void;
|
47 |
|
48 | iosDismissedController?(dismissed: any ): any /* UIViewControllerAnimatedTransitioning */;
|
49 |
|
50 | iosPresentedController?(presented: any , presenting: any , source: any ): any /* UIViewControllerAnimatedTransitioning */;
|
51 |
|
52 | iosInteractionDismiss?(animator: any ): any /* UIViewControllerInteractiveTransitioning */;
|
53 |
|
54 | iosInteractionPresented?(animator: any ): any /* UIViewControllerInteractiveTransitioning */;
|
55 |
|
56 | iosNavigatedController?(navigationController: any , operation: number, fromVC: any , toVC: any ): any /* UIViewControllerAnimatedTransitioning */;
|
57 |
|
58 | androidFragmentTransactionCallback?(fragmentTransaction: any , currentEntry: BackstackEntry, newEntry: BackstackEntry): void;
|
59 | }
|