import { StructuralSharingOption, ValidateSelected } from './structuralSharing.cjs'; import { ReactNode } from './route.cjs'; import { AnyRouter, DeepPartial, MakeOptionalPathParams, MakeOptionalSearchParams, MakeRouteMatchUnion, MaskOptions, MatchRouteOptions, NoInfer, RegisteredRouter, ResolveRelativePath, ResolveRoute, RouteByPath, ToSubOptionsProps } from '@tanstack/router-core'; import * as React from 'react'; declare module '@tanstack/router-core' { interface RouteMatchExtensions { meta?: Array; links?: Array; scripts?: Array; headScripts?: Array; } } export declare function Matches(): import("react/jsx-runtime").JSX.Element; export type UseMatchRouteOptions = ToSubOptionsProps & DeepPartial> & DeepPartial> & MaskOptions & MatchRouteOptions; export declare function useMatchRoute(): (opts: UseMatchRouteOptions) => false | ResolveRoute["types"]["allParams"]; export type MakeMatchRouteOptions = UseMatchRouteOptions & { children?: ((params?: RouteByPath>>['types']['allParams']) => ReactNode) | React.ReactNode; }; export declare function MatchRoute(props: MakeMatchRouteOptions): any; export interface UseMatchesBaseOptions { select?: (matches: Array>) => ValidateSelected; } export type UseMatchesResult = unknown extends TSelected ? Array> : TSelected; export declare function useMatches(opts?: UseMatchesBaseOptions & StructuralSharingOption): UseMatchesResult; export declare function useParentMatches(opts?: UseMatchesBaseOptions & StructuralSharingOption): UseMatchesResult; export declare function useChildMatches(opts?: UseMatchesBaseOptions & StructuralSharingOption): UseMatchesResult;