import { EditorView } from "prosemirror-view"; import { PluginKey } from "prosemirror-state"; import type { TaskType, TaskParams, CompleteV2State } from "./types"; /** * Cancel any active streaming request for the given view */ export declare function cancelActiveRequest(view: EditorView): void; /** * Check if there's an active request for the given view */ export declare function hasActiveRequest(view: EditorView): boolean; interface StreamingRequestParams { view: EditorView; pluginKey: PluginKey; apiKey: string; text: string; task: TaskType; params?: TaskParams; apiEndpoint?: string; model?: string; } /** * Make a streaming request to the AI API */ export declare function streamingRequest({ view, pluginKey, apiKey, text, task, params, apiEndpoint, model, }: StreamingRequestParams): Promise; export {}; //# sourceMappingURL=streaming.d.ts.map