import { IRange } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/core/range"; import { IIdentifiedSingleEditOperation, ITextModel, IValidEditOperation } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/model"; import { IEditObserver } from "@codingame/monaco-vscode-3927dd53-f845-534c-9baa-1528ff3956c8-common/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies"; import { IProgress } from "@codingame/monaco-vscode-api/vscode/vs/platform/progress/common/progress"; import { IntervalTimer } from "@codingame/monaco-vscode-api/vscode/vs/base/common/async"; import { CancellationToken } from "@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation"; export interface AsyncTextEdit { readonly range: IRange; readonly newText: AsyncIterable; } export declare function performAsyncTextEdit(model: ITextModel, edit: AsyncTextEdit, progress?: IProgress, obs?: IEditObserver): Promise; export declare function asProgressiveEdit(interval: IntervalTimer, edit: IIdentifiedSingleEditOperation, wordsPerSec: number, token: CancellationToken): AsyncTextEdit;