/** * This validation file aims to validate that the scale defined in a deployment * is valid, which means that: * (1) if the artifact is a Component, the scale must be a number * (2) if the artifact is a Service, the scale must be a struct, containing * the name and number of replicas for each defined role in the service */ import { DeploymentArtifact } from "../../../language/generated/ast.js"; import { ValidationContext } from "../_shared.js"; import { ValidationAcceptor } from "langium"; declare const _default: () => (readonly ["DeploymentArtifact", typeof ValidScale])[]; export default _default; declare function ValidScale(context: ValidationContext): (node: DeploymentArtifact, accept: ValidationAcceptor) => void;