UNPKG

opencoder

Version:
24 lines (23 loc) 727 B
import { type LanguageModelUsage, type Message } from "ai"; import React from "react"; export type Command = { name: string; type?: "prompt"; description: string; argNames?: string[]; aliases?: string[]; userFacingName: () => string; }; type Props = { commands: Command[]; isDisabled: boolean; isLoading: boolean; messages: Message[]; input: string; usage: LanguageModelUsage; onInputChange: (value: string) => void; onStop: () => void; onSubmit: () => void; }; export declare const AIInput: React.MemoExoticComponent<({ commands, isDisabled, isLoading, messages, input, usage, onInputChange, onSubmit: onChatSubmit, onStop, }: Props) => React.ReactNode>; export {};