import type { editor as MonacoEditor } from 'monaco-editor'; declare type HeightStyleProperty = 'height' | 'minHeight'; interface AutoHeightLayoutOptions { minHeight?: number; heightStyleProperty?: HeightStyleProperty; } declare type AutoHeightEditor = Pick; /** * Keeps an editor sized to its content without enabling Monaco's automaticLayout. * * `automaticLayout` observes the editor container itself. Writing the content * height from `onDidContentSizeChange` while that observer is active can make * Monaco re-enter layout. This controller has one layout owner, coalesces bursts * of content-size events, and only reacts to actual width changes. */ export declare function installAutoHeightLayout(editor: AutoHeightEditor, container: HTMLElement, { minHeight, heightStyleProperty }?: AutoHeightLayoutOptions): () => void; export {};