/** * Match API * * Extracted from createRouter closure. Contains match context creation functions * and the matchError function for error boundary resolution. */ import type { ErrorBoundaryHandler, ErrorInfo, MatchResult } from "../types"; import type { ReactNode } from "react"; import type { MatchContext } from "./match-context.js"; import type { MatchApiDeps, ActionContext } from "./types.js"; /** * Create match context for full requests (document/SSR). */ export declare function createMatchContextForFull(request: Request, env: TEnv, deps: MatchApiDeps, findInterceptForRoute: MatchApiDeps["findInterceptForRoute"]): Promise | { type: "redirect"; redirectUrl: string; }>; /** * Create match context for partial requests (navigation/actions). */ export declare function createMatchContextForPartial(request: Request, env: TEnv, deps: MatchApiDeps, findInterceptForRoute: MatchApiDeps["findInterceptForRoute"], actionContext?: ActionContext): Promise | null>; /** * Match an error to the nearest error boundary and return error segments. */ export declare function matchError(request: Request, _context: TEnv, error: unknown, deps: MatchApiDeps, defaultErrorBoundary: ReactNode | ErrorBoundaryHandler | undefined, segmentType?: ErrorInfo["segmentType"]): Promise; /** * Preview match - returns route middleware without segment resolution. */ export declare function previewMatch(request: Request, context: TEnv, deps: MatchApiDeps): Promise<{ routeMiddleware?: Array<{ handler: import("./middleware.js").MiddlewareFn; params: Record; }>; } | null>; //# sourceMappingURL=match-api.d.ts.map