import { MatchMode } from "./constants.js";
import { omitUndefined } from "./utils/object.js";
let runtimeConfig;
export function setRuntimeConfig(configObj) {
    runtimeConfig = configObj;
}
export function getRuntimeConfig(configOverride = {}) {
    return {
        ...runtimeConfig,
        ...omitUndefined(configOverride),
    };
}
export function collectRecommendationProblems() {
    const { matchMode } = getRuntimeConfig();
    if (matchMode === MatchMode.PARTIAL)
        return [];
    return [
        {
            id: "recommendation:partial-matching",
            severity: "info",
            summary: "Enable partial matching for better results",
            details: "Partial matching skips tiny files and improves match success. Enable it under Settings → Search & RSS when linking is available.",
            metadata: { recommendation: true },
        },
    ];
}
//# sourceMappingURL=runtimeConfig.js.map