import { StructuralSharingOption, ValidateSelected } from './structuralSharing.js'; 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; /** * Read the current location from the router state with optional selection. * Useful for subscribing to just the pieces of location you care about. * * Options: * - `select`: Project the `location` object to a derived value * - `structuralSharing`: Enable structural sharing for stable references * * @returns The current location (or selected value). * @link https://tanstack.com/router/latest/docs/framework/react/api/router/useLocationHook */ export declare function useLocation(opts?: UseLocationBaseOptions & StructuralSharingOption): UseLocationResult;