import type { ReactNode } from 'react'; import type { PathSpec } from '../lib/utils/path.js'; export declare function unstable_rerenderRoute(pathname: string, query?: string): void; export declare function unstable_notFound(): never; export declare function unstable_redirect(location: string, status?: 307 | 308): never; type SlotId = string; export declare function unstable_defineRouter(fns: { getRouteConfig: () => Promise; noSsr?: boolean; }>>; handleRoute: (path: string, options: { query?: string; }) => Promise<{ rootElement: ReactNode; routeElement: ReactNode; elements: Record; }>; getApiConfig?: () => Promise>; handleApi?: (path: string, options: { url: URL; body: ReadableStream | null; headers: Readonly>; method: string; }) => Promise<{ body?: ReadableStream; headers?: Record; status?: number; }>; }): { handleRequest: import("../lib/types.js").HandleRequest; handleBuild: import("../lib/types.js").HandleBuild; }; export {};