import { a as ServerSidePropsResult, c as clearPropsCacheForComponent, d as extractServerPropsWithCache, f as extractStaticParams, i as MetadataResult, l as extractMetadata, o as StaticParamsResult, p as hasServerSideDataFetching, r as ServerConfig, s as clearPropsCache, t as ServerCSPConfig, u as extractServerProps } from "./server-config-D7_4Hk9w.mjs"; import { a as ErrorProps, c as LayoutEntry, f as NotFoundEntry, g as TemplateEntry, h as RouteSegmentType, i as ErrorEntry, m as RouteSegment, n as AppRouteManifest, o as GenerateMetadata, r as AppRouteMatch, s as GenerateStaticParams, t as AppRouteEntry, u as LoadingEntry } from "./types-BwhW3M72.mjs"; import * as React from "react"; //#region src/router/ClientRouter.d.ts interface ClientRouterProps { children: React.ReactNode; initialRoute: string; staleWindowMs?: number; } declare function ClientRouter({ children, initialRoute, staleWindowMs }: ClientRouterProps): React.ReactNode; //#endregion //#region src/router/navigation-error-handler.d.ts type NavigationErrorType = 'fetch-error' | 'timeout' | 'abort' | 'parse-error' | 'network-error' | 'not-found' | 'server-error'; interface NavigationError { type: NavigationErrorType; message: string; originalError?: Error; statusCode?: number; url?: string; timestamp: number; retryable: boolean; } interface NavigationErrorHandlerOptions { timeout?: number; maxRetries?: number; onError?: (error: NavigationError) => void; onRetry?: (attempt: number, error: NavigationError) => void; } declare class NavigationErrorHandler { private options; private retryCount; constructor(options?: NavigationErrorHandlerOptions); handleError(error: unknown, url: string): NavigationError; canRetry(error: NavigationError, url: string): boolean; incrementRetry(url: string): number; resetRetry(url: string): void; getRetryCount(url: string): number; clearRetries(): void; } //#endregion //#region src/router/route-info-types.d.ts interface RouteInfoRequest { path: string; } interface RouteInfoResponse { exists: boolean; layouts: string[]; loading: string | null; isDynamic: boolean; params?: string[]; segments?: Array<{ type: 'static' | 'dynamic' | 'catch-all' | 'optional-catch-all'; value: string; param?: string; }>; } interface RouteInfoError { error: string; code: 'NOT_FOUND' | 'INVALID_PATH' | 'SERVER_ERROR'; } //#endregion //#region src/router/StatePreserver.d.ts interface ScrollPosition { x: number; y: number; element: string; } interface PreservedState { scrollPositions: Map; formData: Map; focusedElement: string | null; } interface StatePreserverConfig { maxHistorySize?: number; scrollableSelector?: string; } declare class StatePreserver { private stateHistory; private routeAccessOrder; private maxHistorySize; private scrollableSelector; constructor(config?: StatePreserverConfig); captureState(route: string): PreservedState; private captureScrollPositions; private captureFormData; private captureFocusedElement; private storeState; getHistorySize(): number; hasState(route: string): boolean; getState(route: string): PreservedState | undefined; clearAll(): void; clearState(route: string): void; restoreState(route: string): boolean; private restoreScrollPositions; private restoreFormData; private restoreFocus; } //#endregion export { type AppRouteEntry, type AppRouteManifest, type AppRouteMatch, ClientRouter, type ClientRouterProps, type ErrorEntry, type ErrorProps, type GenerateMetadata, type GenerateStaticParams, type LayoutEntry, type LoadingEntry, type MetadataResult, type NavigationError, NavigationErrorHandler, type NavigationErrorHandlerOptions, type NavigationErrorType, type NotFoundEntry, type PreservedState, type RouteInfoError, type RouteInfoRequest, type RouteInfoResponse, type RouteSegment, type RouteSegmentType, type ScrollPosition, type ServerCSPConfig, type ServerConfig, type ServerSidePropsResult, StatePreserver, type StatePreserverConfig, type StaticParamsResult, type TemplateEntry, clearPropsCache, clearPropsCacheForComponent, extractMetadata, extractServerProps, extractServerPropsWithCache, extractStaticParams, hasServerSideDataFetching };