import { type NavigationProp, type ParamListBase } from '@react-navigation/native';
import { type RouteNode } from './Route';
/**
 * Returns the React Navigation navigation object for the current route.
 * Provides low-level access to navigation actions, events, and screen options.
 *
 * @param parent - Optional path to parent navigator (absolute like `/(tabs)` or relative like `../`)
 * @returns The navigation object with methods like setOptions, addListener, getParent
 * @link https://onestack.dev/docs/api/hooks/useNavigation
 *
 * @example
 * ```tsx
 * const navigation = useNavigation()
 * navigation.setOptions({ title: 'My Screen' })
 * ```
 */
export declare function useNavigation<T = NavigationProp<ParamListBase>>(parent?: string): T;
export declare function resolveParentId(contextKey: string, parentId?: string | null): string | null;
export declare function resolveParentRouteName(routeNodes: RouteNode[], contextKey: string, parentId?: string | null): string | null | undefined;
//# sourceMappingURL=useNavigation.d.ts.map