import { Store } from '@tanstack/store'; import { GetFrameworkGeneric } from './frameworks'; import { Route } from './route'; import { AnyAllRouteInfo, AnyRouteInfo, DefaultAllRouteInfo, RouteInfo } from './routeInfo'; import { AnyRouter, Router } from './router'; import { Expand } from './utils'; export interface RouteMatchStore { routeSearch: TRouteInfo['searchSchema']; search: Expand; status: 'idle' | 'pending' | 'success' | 'error'; error?: unknown; updatedAt: number; } export declare class RouteMatch { #private; route: Route; router: Router; store: Store>; id: string; pathname: string; params: TRouteInfo['allParams']; component: GetFrameworkGeneric<'Component'>; errorComponent: GetFrameworkGeneric<'ErrorComponent'>; pendingComponent: GetFrameworkGeneric<'Component'>; abortController: AbortController; onLoaderDataListeners: Set<() => void>; parentMatch?: RouteMatch; __loadPromise?: Promise; __onExit?: void | ((matchContext: { params: TRouteInfo['allParams']; search: TRouteInfo['fullSearchSchema']; }) => void); constructor(router: AnyRouter, route: Route, opts: { id: string; params: TRouteInfo['allParams']; pathname: string; }); cancel: () => void; load: () => Promise; fetch: () => Promise; __setParentMatch: (parentMatch?: RouteMatch) => void; __validate: () => void; }