UNPKG

@automattic/agenttic-ui

Version:

UI components for the Agenttic framework

17 lines 588 B
interface UseInputProps { value: string; setValue: (value: string) => void; onSubmit: (value: string) => void; isProcessing: boolean; } export interface UseInputReturn { value: string; setValue: (value: string) => void; clear: () => void; textareaRef: React.RefObject<HTMLTextAreaElement>; handleKeyDown: (e: React.KeyboardEvent<HTMLTextAreaElement>) => void; adjustHeight: () => void; } export declare function useInput({ value, setValue, onSubmit, isProcessing, }: UseInputProps): UseInputReturn; export {}; //# sourceMappingURL=useInput.d.ts.map