import * as React from 'react'; import { type LocaleDirection, type Route } from '../../../native'; import type { StackNavigationConfig, StackViewDescriptorMap, StackViewEmit, StackViewState } from '../../types'; type Props = StackNavigationConfig & { direction: LocaleDirection; state: StackViewState; emit: StackViewEmit; isPreloaded: (key: string) => boolean; pop: (count: number, sourceRouteKey: string) => void; restoreRoute: (route: Route) => boolean; descriptors: StackViewDescriptorMap; }; type State = { routes: Route[]; previousState: StackViewState | undefined; previousDescriptors: StackViewDescriptorMap; openingRouteKeys: string[]; closingRouteKeys: string[]; replacingRouteKeys: string[]; descriptors: StackViewDescriptorMap; }; export declare class StackView extends React.Component { static getDerivedStateFromProps(props: Readonly, state: Readonly): { routes: Route[]; previousState: StackViewState; descriptors: StackViewDescriptorMap; previousDescriptors: StackViewDescriptorMap; openingRouteKeys?: undefined; closingRouteKeys?: undefined; replacingRouteKeys?: undefined; } | { routes: import("../../..").NavigationRoute[]; previousState: StackViewState; previousDescriptors: StackViewDescriptorMap; openingRouteKeys: string[]; closingRouteKeys: string[]; replacingRouteKeys: string[]; descriptors: StackViewDescriptorMap; }; state: State; private getPreviousRoute; private renderHeader; private handleOpenRoute; private handleCloseRoute; private handleTransitionStart; private handleTransitionEnd; private handleGestureStart; private handleGestureEnd; private handleGestureCancel; render(): React.JSX.Element; } export {};