import { StackNavigationState } from '../types';
/**
 * Official Adapter Hook for TanStack Router
 * Intercepts TanStack history events and translates them into an array-based
 * state object that the `ControlledStackNavigator` can animate perfectly.
 */
export declare function useTanStackRouterAdapter<T extends Record<string, object | undefined>>(initialRouteName: keyof T): {
    state: StackNavigationState<T>;
    onNavigate: (name: keyof T, params?: T[keyof T]) => Promise<void>;
    onPush: (name: keyof T, params?: T[keyof T]) => Promise<void>;
    onReplace: (name: keyof T, params?: T[keyof T]) => Promise<void>;
    onGoBack: () => any;
    onPop: () => any;
    onPopToTop: () => Promise<void>;
    canGoBack: () => boolean;
};
