import { ProviderId } from "./languages.js";
declare const privateSymbol: unique symbol;
export declare class TextModelEditSource {
    readonly metadata: ITextModelEditSourceMetadata;
    constructor(metadata: ITextModelEditSourceMetadata, _privateCtorGuard: typeof privateSymbol);
    toString(): string;
    getType(): string;
    /**
     * Converts the metadata to a key string.
     * Only includes properties/values that have `level` many `$` prefixes or less.
    */
    toKey(level: number, filter?: {
        [TKey in ITextModelEditSourceMetadataKeys]?: boolean;
    }): string;
    get props(): Record<ITextModelEditSourceMetadataKeys, string | undefined>;
}
type TextModelEditSourceT<T> = TextModelEditSource & {
    metadataT: T;
};
export declare function isAiEdit(source: TextModelEditSource): boolean;
export declare function isUserEdit(source: TextModelEditSource): boolean;
export declare const EditSources: {
    unknown(data: {
        name?: string | null;
    }): TextModelEditSourceT<{
        readonly source: "unknown";
        readonly name: string | null | undefined;
    }>;
    rename: () => TextModelEditSourceT<{
        readonly source: "rename";
    }>;
    chatApplyEdits(data: {
        modelId: string | undefined;
        sessionId: string | undefined;
        requestId: string | undefined;
    }): TextModelEditSourceT<{
        readonly source: "Chat.applyEdits";
        readonly $modelId: string | undefined;
        readonly $$sessionId: string | undefined;
        readonly $$requestId: string | undefined;
    }>;
    chatUndoEdits: () => TextModelEditSourceT<{
        readonly source: "Chat.undoEdits";
    }>;
    chatReset: () => TextModelEditSourceT<{
        readonly source: "Chat.reset";
    }>;
    inlineCompletionAccept(data: {
        nes: boolean;
        requestUuid: string;
        providerId?: ProviderId;
    }): TextModelEditSourceT<{
        readonly $$requestUuid: string;
        readonly $extensionId?: undefined;
        readonly $extensionVersion?: undefined;
        readonly $providerId?: undefined;
        readonly source: "inlineCompletionAccept";
        readonly $nes: boolean;
    } | {
        readonly $$requestUuid: string;
        readonly $extensionId: string | undefined;
        readonly $extensionVersion: string | undefined;
        readonly $providerId: string | undefined;
        readonly source: "inlineCompletionAccept";
        readonly $nes: boolean;
    }>;
    inlineCompletionPartialAccept(data: {
        nes: boolean;
        requestUuid: string;
        providerId?: ProviderId;
        type: "word" | "line";
    }): TextModelEditSourceT<{
        readonly $$requestUuid: string;
        readonly $extensionId?: undefined;
        readonly $extensionVersion?: undefined;
        readonly $providerId?: undefined;
        readonly source: "inlineCompletionPartialAccept";
        readonly type: "line" | "word";
        readonly $nes: boolean;
    } | {
        readonly $$requestUuid: string;
        readonly $extensionId: string | undefined;
        readonly $extensionVersion: string | undefined;
        readonly $providerId: string | undefined;
        readonly source: "inlineCompletionPartialAccept";
        readonly type: "line" | "word";
        readonly $nes: boolean;
    }>;
    inlineChatApplyEdit(data: {
        modelId: string | undefined;
    }): TextModelEditSourceT<{
        readonly source: "inlineChat.applyEdits";
        readonly $modelId: string | undefined;
    }>;
    reloadFromDisk: () => TextModelEditSourceT<{
        readonly source: "reloadFromDisk";
    }>;
    cursor(data: {
        kind: "compositionType" | "compositionEnd" | "type" | "paste" | "cut" | "executeCommands" | "executeCommand";
        detailedSource?: string | null;
    }): TextModelEditSourceT<{
        readonly source: "cursor";
        readonly kind: "type" | "cut" | "paste" | "compositionType" | "compositionEnd" | "executeCommands" | "executeCommand";
        readonly detailedSource: string | null | undefined;
    }>;
    setValue: () => TextModelEditSourceT<{
        readonly source: "setValue";
    }>;
    eolChange: () => TextModelEditSourceT<{
        readonly source: "eolChange";
    }>;
    applyEdits: () => TextModelEditSourceT<{
        readonly source: "applyEdits";
    }>;
    snippet: () => TextModelEditSourceT<{
        readonly source: "snippet";
    }>;
    suggest: (data: {
        providerId: ProviderId | undefined;
    }) => TextModelEditSourceT<{
        readonly $extensionId?: undefined;
        readonly $extensionVersion?: undefined;
        readonly $providerId?: undefined;
        readonly source: "suggest";
    } | {
        readonly $extensionId: string | undefined;
        readonly $extensionVersion: string | undefined;
        readonly $providerId: string | undefined;
        readonly source: "suggest";
    }>;
    codeAction: (data: {
        kind: string | undefined;
        providerId: ProviderId | undefined;
    }) => TextModelEditSourceT<{
        readonly $extensionId?: undefined;
        readonly $extensionVersion?: undefined;
        readonly $providerId?: undefined;
        readonly source: "codeAction";
        readonly $kind: string | undefined;
    } | {
        readonly $extensionId: string | undefined;
        readonly $extensionVersion: string | undefined;
        readonly $providerId: string | undefined;
        readonly source: "codeAction";
        readonly $kind: string | undefined;
    }>;
};
type Values<T> = T[keyof T];
type ITextModelEditSourceMetadata = Values<{
    [TKey in keyof typeof EditSources]: ReturnType<typeof EditSources[TKey]>["metadataT"];
}>;
type ITextModelEditSourceMetadataKeys = Values<{
    [TKey in keyof typeof EditSources]: keyof ReturnType<typeof EditSources[TKey]>["metadataT"];
}>;
export {};
