/** * Public action functions for the auto-complete plugin * * These functions provide a clean API for controlling the plugin * from outside (e.g., from React components or other plugins). */ import { EditorView } from "prosemirror-view"; import { AutoCompleteState } from "./types"; /** * Enable or disable the auto-complete plugin, optionally setting a custom system prompt */ export declare function setAutoCompleteEnabled(view: EditorView, enabled: boolean, systemPrompt?: string): void; /** * Set or clear the custom system prompt for auto-complete without toggling enabled state */ export declare function setAutoCompleteSystemPrompt(view: EditorView, systemPrompt: string | undefined): void; /** * Enable auto-complete with an optional custom system prompt. * Convenience wrapper combining enable + system prompt in one call. */ export declare function autoCompleteInit(view: EditorView, systemPrompt?: string): void; /** * Accept the current completion (if showing) * This is typically triggered by pressing Tab, but can be called programmatically */ export declare function acceptAutoCompletion(view: EditorView): boolean; /** * Dismiss the current completion without accepting it */ export declare function dismissAutoCompletion(view: EditorView): void; /** * Get the current auto-complete plugin state */ export declare function getAutoCompleteState(view: EditorView): AutoCompleteState | undefined; /** * Check if auto-complete is currently enabled */ export declare function isAutoCompleteEnabled(view: EditorView): boolean; /** * Check if a completion is currently being shown */ export declare function hasAutoCompletion(view: EditorView): boolean; //# sourceMappingURL=actions.d.ts.map