import * as React from 'react'; export interface SuggestionCardRailProps { /** * Id of the currently selected suggestion. */ selectedReviewSuggestionId: string | null | undefined; /** * Called when the selected suggestion changes. */ onReviewSuggestionSelect: ((suggestionId: string | null) => void) | undefined; /** * Called after an accept transaction has been applied to the editor doc. */ onReviewSuggestionAccept?: (suggestionId: string) => Promise | void; /** * Called when the user rejects the selected suggestion. */ onReviewSuggestionReject?: (suggestionId: string) => Promise | void; onReviewSuggestionSourceClick?: (sourceId: string) => void; /** * The editor container ref. The rail card scans this subtree for the * selected suggestion decoration and uses it for vertical alignment. */ editorRootRef: React.RefObject; /** * Whether the editor is read-only. */ readOnly?: boolean; } /** * Right-rail suggestion card synced to the currently selected suggestion. */ export declare const SuggestionCardRail: React.FC;