import type { CoauthorAction, ProofreadChange } from '../lib/coauthor-client.js';
export interface CoauthorResultPopoverProps {
    open: boolean;
    loading: boolean;
    action: CoauthorAction;
    before: string;
    after: string;
    error?: string;
    changes?: ProofreadChange[];
    /** Label for the apply target, e.g. "Apply to editor" or "Replace selection". */
    applyLabel?: string;
    onApply: () => void;
    onCopy: () => void;
    onDiscard: () => void;
}
/**
 * Universal AI-result panel rendered by both the TipTap bubble menu and the
 * Cmd+K slash-command palette. Shows a before/after diff plus three actions:
 *
 *   - Apply (write the result back to the active target)
 *   - Copy (copy the result to the clipboard)
 *   - Discard (close without changing anything)
 *
 * The popover takes the same `{ open, loading, action, before, after, error }`
 * state shape regardless of caller so the UX stays identical across surfaces.
 */
export declare function CoauthorResultPopover({ open, loading, action, before, after, error, changes, applyLabel, onApply, onCopy, onDiscard, }: CoauthorResultPopoverProps): import("react/jsx-runtime").JSX.Element | null;
//# sourceMappingURL=CoauthorResultPopover.d.ts.map