import type { ReactNode } from 'react';
import type { TestIdProp } from '../../types';
/** AI rewrite action types */
export type AIAction = 'improve' | 'shorter' | 'professional' | 'friendly';
export interface AIRewriteProps extends TestIdProp {
    /** The button element that triggered the popover */
    target: HTMLElement;
    /** Called when the user clicks the Generate button to request an AI rewrite */
    onGenerate: (rewriteAction: AIAction, additionalInstructions: string) => void;
    /** Called when the user clicks Submit to apply the suggestion */
    onSubmit: () => void;
    /** Called when the user cancels or dismisses the popover */
    onCancel: () => void;
    /** When true, the AI is generating a suggestion. Disables the Generate button. */
    isGenerating?: boolean;
    /** The AI-generated suggestion text. When provided, Submit is enabled. */
    suggestion?: string;
    /** Custom editor to render in the suggestion area. When not provided, the raw suggestion text is shown read-only. */
    suggestionEditor?: ReactNode;
}
//# sourceMappingURL=AIRewrite.types.d.ts.map