import { Dispatch, SetStateAction } from 'react'; /** * Picks the default review-suggestion selection once the editor view exists AND the * suggestion ranges have resolved against the document — not from the async loader's raw * data. * * Selecting straight from the loader (before `editorViewCtx` is registered) leaves the rail * unable to read plugin state, so the card renders late. By reading plugin state here we * also select the FIRST suggestion in document order (the order produced *after* text * matching, via {@link orderReviewSuggestionsByResolvedRanges}) — matching the order the * rail renders — instead of the loader array's order. * * Ranges resolve synchronously on load standalone, but across Yjs sync transactions in * collab; neither re-renders React, so we poll via RAF (bounded) until they resolve or the * budget is exhausted. Only an empty/stale selection is filled — a still-valid current * selection is preserved (e.g. across a readOnly toggle / editor re-create). */ export declare function useDefaultReviewSuggestionSelection(hasReviewSuggestions: boolean, setSelectedReviewSuggestionId: Dispatch>): void;