import { Awaitable, RegisteredRouter } from '@tanstack/router-core'; interface StartStorageContext { getRouter: () => Awaitable; request: Request; startOptions: any; contextAfterGlobalMiddlewares: any; executedRequestMiddlewares: Set; } declare function runWithStartContext(context: StartStorageContext, fn: () => T | Promise): Promise; declare function getStartContext(opts?: { throwIfNotFound?: TThrow; }): TThrow extends false ? StartStorageContext | undefined : StartStorageContext; export { type StartStorageContext, getStartContext, runWithStartContext };