import type { EditContextType } from "../client/editContext";
import type { Field } from "../pageModel";
type TextCompletionFieldContext = Pick<Field, "displayName" | "id" | "name" | "type">;
export declare function normalizeTextCompletion(completion: string | null | undefined): string;
export declare function buildTextCompletionContext(editContext: EditContextType, field: TextCompletionFieldContext, value: string, selectionStart: number, selectionEnd: number): Promise<string>;
export declare function getTextCompletion({ editContext, field, value, selectionStart, selectionEnd, signal, }: {
    editContext: EditContextType;
    field: TextCompletionFieldContext;
    value: string;
    selectionStart: number;
    selectionEnd: number;
    signal?: AbortSignal;
}): Promise<string>;
export {};
