export function getRequiredSecretEnvVarNames(profile) {
    const reqs = profile.envVarRequirements ?? [];
    return reqs
        .filter((r) => (r.kind ?? 'secret') === 'secret' && r.required === true)
        .map((r) => r.name)
        .filter((name) => typeof name === 'string' && name.length > 0);
}
export function getRequiredConfigEnvVarNames(profile) {
    const reqs = profile.envVarRequirements ?? [];
    return reqs
        .filter((r) => (r.kind ?? 'secret') === 'config' && r.required === true)
        .map((r) => r.name)
        .filter((name) => typeof name === 'string' && name.length > 0);
}
export function getMissingRequiredConfigEnvVarNames(profile, machineEnvReadyByName) {
    if (!profile)
        return [];
    return getRequiredConfigEnvVarNames(profile)
        .filter((name) => machineEnvReadyByName?.[name] !== true);
}
//# sourceMappingURL=profileRequirements.js.map