import { EditorView } from "prosemirror-view"; import { CompleteV2State, TaskType, MoodParams, TranslationParams, CustomParams } from "./types"; /** * Start a completion task */ export declare function startTask(view: EditorView, taskType: TaskType, params?: MoodParams | TranslationParams | CustomParams): void; /** * Accept the streamed result and apply it to the document */ export declare function acceptResult(view: EditorView): void; /** * Reject the streamed result and discard it */ export declare function rejectResult(view: EditorView): void; /** * Cancel an in-progress task */ export declare function cancelTask(view: EditorView): void; /** * Toggle the plugin enabled state */ export declare function setEnabled(view: EditorView, enabled: boolean): void; /** * Clear any error state */ export declare function clearError(view: EditorView): void; /** * Get the current plugin state */ export declare function getCompleteState(view: EditorView): CompleteV2State | undefined; /** * Start a custom task with a system prompt * Convenience wrapper around startTask with Custom task type */ export declare function startCustomTask(view: EditorView, systemPrompt: string): void; //# sourceMappingURL=actions.d.ts.map