import { MaybeRefOrGetter, Ref } from 'vue'; export interface UseAutosizeOptions { textarea: Ref; /** Hidden span mirroring the draft; its width is the single-line width. */ measure: Ref; /** The grid laying the textarea out beside the fixed controls. */ controls: Ref; /** Elements that share the inline row with the textarea. */ fixed: () => (HTMLElement | null | undefined)[]; value: MaybeRefOrGetter; minHeight: MaybeRefOrGetter; maxHeight: MaybeRefOrGetter; } export interface UseAutosizeReturn { /** True once the draft has to take a row of its own above the controls. */ expanded: Ref; remeasure: () => void; } /** * Grows the composer textarea with its content and decides when the draft has * outgrown the inline row. Private to `TxPromptBar`: it is coupled to that * component's grid, not a general-purpose autosize. */ export declare function useAutosize(options: UseAutosizeOptions): UseAutosizeReturn;