import { type Descriptor, type ParamListBase, type RouteProp } from '../react-navigation/native'; import type { StandardNavigatorDescriptor } from './types'; export type TabRoute = RouteProp; export type TabDescriptor = Partial, 'routeSource' | 'options' | 'render'> & Pick>, 'route'>>; /** * Returns the visible layout tabs and their focused index. When the navigator is focused, redirects * an unavailable focused route to the layout's initial route or the first visible tab. */ export declare function useVisibleTabsWithRedirect({ routes, routeNames, focusedRouteKey, descriptors, navigatorKey, }: { routes: Route[]; routeNames: string[]; focusedRouteKey: string | undefined; descriptors: Record>; navigatorKey?: string; }): { visibleRoutes: Route[]; focusedIndex: number; focusedFallbackRoute: Route | undefined; };