import React from "react"; import { ReactNextElement } from "@next-core/react-element"; import "@next-core/theme"; import type { ChatPayload, UploadOptions } from "../shared/interfaces.js"; import { type Command } from "../shared/ChatCompletions/useChatCompletions.js"; export declare const ChatBoxComponent: React.ForwardRefExoticComponent & React.RefAttributes>; export interface ChatBoxProps { disabled?: boolean; placeholder?: string; autoFocus?: boolean; aiEmployees?: AIEmployee[]; commands?: Command[]; uploadOptions?: UploadOptions; } export interface AIEmployee { employeeId: string; name: string; } export interface ChatBoxRef { setValue: (value: string) => void; getValue: () => string; focusOnInput: () => void; } /** * 大型聊天输入框,用于首页 */ export declare class ChatBox extends ReactNextElement implements ChatBoxProps { #private; ref: React.RefObject; accessor disabled: boolean | undefined; accessor placeholder: string | undefined; accessor autoFocus: boolean | undefined; accessor aiEmployees: AIEmployee[] | undefined; accessor commands: Command[] | undefined; accessor uploadOptions: UploadOptions | undefined; setValue(value: string): void; getValue(): string | undefined; focusOnInput(): void | undefined; render(): React.JSX.Element; } interface ChatBoxComponentProps extends ChatBoxProps { root: HTMLElement; onMessageSubmit: (value: string) => void; onChatSubmit: (payload: ChatPayload) => void; ref?: React.Ref; } export {};