@difizen/libro-ai-native
Version:
13 lines • 739 B
TypeScript
import type { IAICompletionOption, ICompletionContext, IIntelligentCompletionsResult, CancellationToken } from '@difizen/libro-code-editor';
export declare class CompletionRequest {
context: ICompletionContext;
token: CancellationToken;
isCancelFlag: boolean;
id: string;
constructor(context: ICompletionContext, token: CancellationToken);
protected constructRequestContext(context: ICompletionContext, token: CancellationToken): IAICompletionOption;
cancelRequest(): void;
run(): Promise<import("@difizen/libro-code-editor").InlineCompletion[]>;
protected complete(data: IAICompletionOption): Promise<IIntelligentCompletionsResult | undefined>;
}
//# sourceMappingURL=inline-completion-request.d.ts.map