import type { MetaDescriptor, UseNavigateResult } from '@tanstack/router-core'; import type { LinkComponentRoute } from './linkTypes'; import type { UseLoaderDataRoute, UseLoaderDepsRoute, UseMatchRoute, UseParamsRoute, UseRouteContextRoute, UseSearchRoute, } from './routeHookTypes'; export type OctaneElementAttributes = Record; export type OctaneScriptAttributes = OctaneElementAttributes & { children?: string; }; declare module '@tanstack/router-core' { interface RouteMatchExtensions { // router-core 1.171.15's source RouteMatch carries this field, and its SSR // declarations index it while the published Matches.d.ts accidentally omits // it. Keep the binding's public SSR entry type-checkable without asking // consumers to enable skipLibCheck. __beforeLoadContext?: Record; meta?: Array; links?: Array; scripts?: Array; styles?: Array; headScripts?: Array; } interface RouteExtensions { useMatch: UseMatchRoute; useRouteContext: UseRouteContextRoute; useSearch: UseSearchRoute; useParams: UseParamsRoute; useLoaderDeps: UseLoaderDepsRoute; useLoaderData: UseLoaderDataRoute; useNavigate: () => UseNavigateResult; Link: LinkComponentRoute; } }