import type { EventMapBase, NavigationState } from '@react-navigation/native'; import React from 'react'; import type { PickPartial } from '../types'; import { type ScreenProps } from '../useScreens'; export declare function useFilterScreenChildren(children: React.ReactNode, { isCustomNavigator, contextKey, }?: { isCustomNavigator?: boolean; /** Used for sending developer hints */ contextKey?: string; }): { screens: any[] | null | undefined; children: any[]; }; /** Return a navigator that automatically injects matched routes and renders nothing when there are no children. Return type with children prop optional */ export declare function withLayoutContext, State extends NavigationState, EventMap extends EventMapBase>(Nav: T, processor?: (options: ScreenProps[]) => ScreenProps[]): React.ForwardRefExoticComponent, 'children'>> & React.RefAttributes> & { Screen: (props: ScreenProps) => null; }; //# sourceMappingURL=withLayoutContext.d.ts.map