import { ParamListBase, Route, StackNavigationState } from '@react-navigation/native'; import * as React from 'react'; import type { StackDescriptorMap, StackNavigationConfig, StackNavigationHelpers } from '../../types'; declare type Props = StackNavigationConfig & { state: StackNavigationState; navigation: StackNavigationHelpers; descriptors: StackDescriptorMap; }; declare type State = { routes: Route[]; previousRoutes: Route[]; previousDescriptors: StackDescriptorMap; openingRouteKeys: string[]; closingRouteKeys: string[]; replacingRouteKeys: string[]; descriptors: StackDescriptorMap; }; export default class StackView extends React.Component { static getDerivedStateFromProps(props: Readonly, state: Readonly): { routes: Route[]; previousRoutes: Route[]; descriptors: StackDescriptorMap; previousDescriptors: StackDescriptorMap; openingRouteKeys?: undefined; closingRouteKeys?: undefined; replacingRouteKeys?: undefined; } | { routes: (Readonly<{ key: string; name: string; path?: string | undefined; }> & Readonly<{ params?: Readonly; }> & { state?: Readonly<{ key: string; index: number; routeNames: string[]; history?: unknown[] | undefined; routes: (Readonly<{ key: string; name: string; path?: string | undefined; }> & Readonly<{ params?: Readonly; }> & any)[]; type: string; stale: false; }> | import("@react-navigation/native").PartialState & Readonly<{ params?: Readonly; }> & any)[]; type: string; stale: false; }>> | undefined; })[]; previousRoutes: (Readonly<{ key: string; name: string; path?: string | undefined; }> & Readonly<{ params?: Readonly; }> & { state?: Readonly<{ key: string; index: number; routeNames: string[]; history?: unknown[] | undefined; routes: (Readonly<{ key: string; name: string; path?: string | undefined; }> & Readonly<{ params?: Readonly; }> & any)[]; type: string; stale: false; }> | import("@react-navigation/native").PartialState & Readonly<{ params?: Readonly; }> & any)[]; type: string; stale: false; }>> | undefined; })[]; previousDescriptors: StackDescriptorMap; openingRouteKeys: string[]; closingRouteKeys: string[]; replacingRouteKeys: string[]; descriptors: StackDescriptorMap; }; state: State; private getPreviousRoute; private renderScene; private renderHeader; private handleOpenRoute; private handleCloseRoute; private handleTransitionStart; private handleTransitionEnd; private handleGestureStart; private handleGestureEnd; private handleGestureCancel; render(): JSX.Element; } export {};