import { StructuralSharingOption, ValidateSelected } from './structuralSharing.cjs'; import { AnyRouter, RegisteredRouter, RouterState } from '@tanstack/router-core'; export interface UseLocationBaseOptions { select?: (state: RouterState['location']) => ValidateSelected; } export type UseLocationResult = unknown extends TSelected ? RouterState['location'] : TSelected; export declare function useLocation(opts?: UseLocationBaseOptions & StructuralSharingOption): UseLocationResult;