/**
 * @license
 * Copyright 2025 Vybestack LLC
 * SPDX-License-Identifier: Apache-2.0
 */
/**
 * @plan PLAN-20251215-OLDUI-SCROLL.P04
 * @requirement REQ-456.4
 */
export const inkRenderOptions = (config, settings) => {
    const isScreenReaderEnabled = config.getScreenReader();
    const useAlternateBuffer = settings.merged.ui?.useAlternateBuffer === true && !isScreenReaderEnabled;
    const incrementalRendering = useAlternateBuffer && settings.merged.ui?.incrementalRendering !== false;
    return {
        exitOnCtrlC: false,
        patchConsole: false,
        isScreenReaderEnabled,
        alternateBuffer: useAlternateBuffer,
        incrementalRendering,
    };
};
//# sourceMappingURL=inkRenderOptions.js.map