import { ReviewSuggestionsEditorData, ReviewSuggestionsLoader } from '../../types'; /** * Loads review suggestions in React once the Milkdown editor view exists, then * applies them via plugin meta. Unlike the previous `$proseAsync` loader, this * does not gate `editorViewCtx` registration on a network fetch — so the * toolbar and collab mount handlers can run against a live view while suggestions * load. * * Reloads preserve `selectedReviewSuggestionIdRef` when that id is still in the * loaded set so decoration selection stays aligned without relying on default * selection / sync effects re-firing. * * If `getInstance()` or `editorViewCtx` is briefly unavailable when the fetch * resolves, apply is retried on subsequent animation frames (same window as * `useReviewSuggestionBulkActionsRef`). */ export declare function useReviewSuggestionsLoader(reviewSuggestionsLoader: ReviewSuggestionsLoader | undefined, onReviewSuggestionsLoadedRef: React.MutableRefObject<((data: ReviewSuggestionsEditorData) => void) | undefined>, editorGenerationRef: React.MutableRefObject, /** React-owned rail selection — must survive suggestion reloads (default-selection + sync won't re-fire). */ selectedReviewSuggestionIdRef: React.MutableRefObject): void;