/**
 * MK2 Terminal Profile Detection - DEPRECATED
 *
 * This file is DEPRECATED. Use safeViewport.ts instead.
 * Kept for backward compatibility only.
 *
 * @deprecated Use isWebTerminal() from safeViewport.ts
 */
import { isWebTerminal } from './safeViewport.js';
/**
 * @deprecated Use isWebTerminal() from safeViewport.ts
 */
export function detectTerminalProfile() {
    const isWeb = isWebTerminal();
    // Env overrides
    const envMarginX = process.env.MK2_SAFE_MARGIN_X;
    const envMarginY = process.env.MK2_SAFE_MARGIN_Y;
    if (envMarginX !== undefined && envMarginY !== undefined) {
        return {
            isCloudShell: isWeb,
            isWebTerm: isWeb,
            safeMarginX: parseInt(envMarginX, 10),
            safeMarginY: parseInt(envMarginY, 10),
            disableBorders: false,
        };
    }
    // CloudShell/web terminal
    if (isWeb) {
        return {
            isCloudShell: true,
            isWebTerm: true,
            safeMarginX: 2,
            safeMarginY: 1,
            disableBorders: false,
        };
    }
    // Local terminal
    return {
        isCloudShell: false,
        isWebTerm: false,
        safeMarginX: 0,
        safeMarginY: 0,
        disableBorders: false,
    };
}
//# sourceMappingURL=terminalProfile.js.map