import { RefObject } from 'react'; interface AutoGrowOptions { enabled?: boolean; /** Whether the text needs more than the field's `rows`, after each change of `value` or width. */ onGrow?: (isGrown: boolean) => void; } /** * Keeps a textarea as tall as its text, up to the `max-height` its stylesheet sets. It measures * again when `value` changes, so the field must be controlled, and when its width changes. */ export declare function useAutoGrow(ref: RefObject, value: unknown, { enabled, onGrow }?: AutoGrowOptions): void; export {};