import type { Command } from '@tiptap/core'; import type { DiffSuggestionAttributes, DiffSuggestionMeta } from './types'; declare module '@tiptap/core' { interface Commands { diffSuggestion: { /** * Insert a diff suggestion at the current position */ insertDiffSuggestion: (options: DiffSuggestionAttributes) => ReturnType; /** * Accept a specific diff suggestion */ acceptDiffSuggestion: (id?: string) => ReturnType; /** * Reject a specific diff suggestion */ rejectDiffSuggestion: (id?: string) => ReturnType; /** * Accept all diff suggestions in the document */ acceptAllDiffSuggestions: () => ReturnType; /** * Reject all diff suggestions in the document */ rejectAllDiffSuggestions: () => ReturnType; }; } } /** * Default suggestion handler */ export declare const defaultHandleSuggestion: (action: "accept" | "reject", onAction?: (meta: DiffSuggestionMeta) => void) => Command; export declare const commands: { insertDiffSuggestion: (options: DiffSuggestionAttributes) => Command; acceptDiffSuggestion: (id?: string) => Command; rejectDiffSuggestion: (id?: string) => Command; acceptAllDiffSuggestions: () => Command; rejectAllDiffSuggestions: () => Command; }; //# sourceMappingURL=commands.d.ts.map