import { Awaitable, ManifestRouteAssets, RegisteredRouter } from '@tanstack/router-core'; export type StartHandlerType = 'router' | 'serverFn'; export interface StartStorageContext { getRouter: () => Awaitable; request: Request; startOptions: any; contextAfterGlobalMiddlewares: any; executedRequestMiddlewares: Set; handlerType: StartHandlerType; /** * Additional assets to inject for this request. * Plugins can add manifest route assets here during request processing. * Merged into manifest at dehydration time without mutating cached manifest. */ requestAssets?: ManifestRouteAssets; } export declare function runWithStartContext(context: StartStorageContext, fn: () => T | Promise): Promise; export declare function getStartContext(opts?: { throwIfNotFound?: TThrow; }): TThrow extends false ? StartStorageContext | undefined : StartStorageContext;