"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const type_is_1 = __importDefault(require("type-is"));
const localModeConfig = {
    ytAuthAllowInsecure: true,
    clustersConfigPath: undefined,
    ytInterfaceSecret: undefined,
    expressBodyParserJSONConfig: {
        limit: '51mb',
        type(req) {
            // Enable raw parser for all content-types on yt-api for piping requests
            if (req.url?.startsWith('/api/yt/'))
                return false;
            if (req.url?.startsWith('/localmode/api/yt/'))
                return false;
            // Simulate default logic given that 'type' option is 'application/json'
            return Boolean((0, type_is_1.default)(req, 'application/json'));
        },
    },
    uiSettings: {
        newTableReplicasCount: 1,
        uploadTableMaxSize: 50 * 1024 * 1024,
        uploadTableUseLocalmode: true,
        queryTrackerStage: 'testing',
        directDownload: false,
        reportBugUrl: 'https://github.com/ytsaurus/ytsaurus-ui/issues/new',
    },
};
exports.default = localModeConfig;
