/** * `@pierre/diffs` is an optional heavy peer. The package never names it in an * `import()` that the conversation surfaces can reach: bundlers such as * Turbopack resolve every reachable dynamic import at build time, so a host * without the peer would fail to build. Hosts that install it opt in once with * `enablePierreDiffs()` from `@opengeni/react/diffs` (or register their own * loader); otherwise diffs and file views use the plain-text renderer. */ export type PierreDiffsLoader = () => Promise; /** * Register (or clear with `null`) the loader for `@pierre/diffs/react`. * Views already on screen retry with the new loader, so a host may register * lazily (for example from the route that renders diffs). */ export declare function registerPierreDiffs(next: PierreDiffsLoader | null): void; /** Changes whenever the registered loader changes (for `useSyncExternalStore`). */ export declare function pierreDiffsRevision(): number; export declare function subscribePierreDiffs(listener: () => void): () => void; /** Resolve the registered `@pierre/diffs/react` module; rejects when none is registered. */ export declare function loadPierreDiffs(): Promise;