/**
 * @license
 * Copyright 2025 Vybestack LLC
 * SPDX-License-Identifier: Apache-2.0
 */
import { type DOMElement } from 'ink';
/**
 * Hook to detect UI flicker by measuring the root element's height
 * against the terminal height.
 *
 * This hook is for TELEMETRY ONLY - it detects overflow and emits
 * a Flicker event for monitoring purposes. It does NOT prevent flicker.
 *
 * Actual flicker prevention is handled in AppContainer by:
 * 1. Measuring footer height
 * 2. Calculating available terminal height
 * 3. Passing constraints to child components
 *
 * This addresses issue #456 - flicker resistance for narrow terminals
 * and dialogs/long output scenarios.
 */
export declare function useFlickerDetector(rootUiRef: React.RefObject<DOMElement | null>, terminalHeight: number, constrainHeight: boolean): void;
