Files
clawdbot/apps/macos/Sources/Clawdis/Resources/WebChat/components/MessageEditor.d.ts
2025-12-06 05:01:28 +01:00

43 lines
1.5 KiB
TypeScript

import type { Model } from "@mariozechner/pi-ai";
import { LitElement } from "lit";
import { type Attachment } from "../utils/attachment-utils.js";
import "./AttachmentTile.js";
export declare class MessageEditor extends LitElement {
private _value;
private textareaRef;
get value(): string;
set value(val: string);
isStreaming: boolean;
currentModel?: Model<any>;
thinkingLevel: "off" | "minimal" | "low" | "medium" | "high";
showAttachmentButton: boolean;
showModelSelector: boolean;
showThinkingSelector: boolean;
onInput?: (value: string) => void;
onSend?: (input: string, attachments: Attachment[]) => void;
onAbort?: () => void;
onModelSelect?: () => void;
onThinkingChange?: (level: "off" | "minimal" | "low" | "medium" | "high") => void;
onFilesChange?: (files: Attachment[]) => void;
attachments: Attachment[];
maxFiles: number;
maxFileSize: number;
acceptedTypes: string;
processingFiles: boolean;
isDragging: boolean;
private fileInputRef;
protected createRenderRoot(): HTMLElement | DocumentFragment;
private handleTextareaInput;
private handleKeyDown;
private handlePaste;
private handleSend;
private handleAttachmentClick;
private handleFilesSelected;
private removeFile;
private handleDragOver;
private handleDragLeave;
private handleDrop;
firstUpdated(): void;
render(): import("lit-html").TemplateResult<1>;
}
//# sourceMappingURL=MessageEditor.d.ts.map