import type { ResolvedSegment } from "./types.js";
/**
 * Assert that merging a server segment with a cached segment won't change
 * the React tree structure. Logs a warning in development when a mismatch
 * is detected.
 *
 * This catches the class of bugs where `loading()` with `{ ssr: false }`
 * produces `loading=false` on SSR but `loading=<skeleton>` on actions,
 * causing React to remount LoaderBoundary/RouteContentWrapper and destroy
 * client state (useActionState, refs, etc.).
 *
 * @param cached - The currently cached segment
 * @param incoming - The new segment from server
 * @param context - Where this merge is happening (for the warning message)
 */
export declare function assertSegmentStructure(cached: ResolvedSegment, incoming: ResolvedSegment, context: string): void;
//# sourceMappingURL=segment-structure-assert.d.ts.map