/**
 * Extracts the ignored OS updates for a specific device model and platform from the configuration
 *
 * @param ignoredOSUpdatesConfig The configuration object containing ignored OS updates per platform and device model
 * @param deviceModelId The device model identifier
 * @param platform The platform to get updates for
 * @returns Array of firmware versions that should be ignored for the given device model and platform
 */
export const getIgnoredOSUpdatesForDeviceModelAndPlatform = (ignoredOSUpdatesConfig, deviceModelId, platform) => {
    // No ignored OS updates configuration
    if (!ignoredOSUpdatesConfig)
        return [];
    // No configuration for the specified platform
    const configForPlatform = ignoredOSUpdatesConfig[platform];
    if (!configForPlatform)
        return [];
    // Return the ignored OS updates for the specified device model, empty array if not configured for that model
    return configForPlatform[deviceModelId] ?? [];
};
//# sourceMappingURL=getIgnoredOSUpdatesForDeviceModelAndPlatform.js.map