import React__default from 'react'; import { BaseAiTextareaProps } from '../../types/base/index.js'; import '../../types/base/base-autosuggestions-config.js'; import '../../types/base/autosuggestions-bare-function.js'; import '@vn-sdk/react-core'; /** * Purpose: to be used as the `ref` type for `AiTextarea` and `BaseAiTextarea`. * * This interface extends `HTMLElement`, and is the subset of `HTMLTextAreaElement` that "actually matters". * It provides the core functionality that consumers of `HTMLTextAreaElement` need 99.9% of the time: * - `value`: the current value of the textarea * - `focus`: make the textarea focused * - `blur`: make the textarea unfocused */ interface HTMLAiTextAreaElement extends HTMLElement { /** * The current value of the textarea. */ value: string; /** * focus on the textarea */ focus: () => void; /** * unfocus the textarea. * * Called `blur` for syntactic compatibility with `HTMLTextAreaElement`. */ blur: () => void; } /** * Not intended for direct use. Use AiTextarea instead. * * The `BaseAiTextarea` includes the basic UX component, * without the business logic / AI logic that makes the content useful and coherent. * * It is useful if you want to build your own backend, with fully custom business logic * for figuring out which contnet to fill in. */ declare const BaseAiTextarea: React__default.ForwardRefExoticComponent>; export { BaseAiTextarea, HTMLAiTextAreaElement };