/*
 * Copyright 2025 The Backstage Authors
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

export interface Config {
  tollgate?: {
    scaffolder?: {
      /**
       * Default cost threshold for automatic approval (USD)
       * @default 100
       */
      autoApprovalThreshold?: number;
      
      /**
       * Default region for pricing calculations
       * @default "us-east-1"
       */
      defaultRegion?: string;
      
      /**
       * Resource pricing configuration
       */
      pricing?: {
        /**
         * CPU pricing per core per hour (USD)
         * @default 0.048
         */
        cpuHourlyRate?: number;
        
        /**
         * Memory pricing per GB per hour (USD)
         * @default 0.0067
         */
        memoryHourlyRate?: number;
        
        /**
         * Storage pricing per GB per month (USD)
         * @default 0.10
         */
        storageMonthlyRate?: number;
        
        /**
         * Regional pricing multipliers
         */
        regionalMultipliers?: {
          [region: string]: number;
        };
      };
      
      /**
       * Kubernetes configuration
       */
      kubernetes?: {
        /**
         * Default namespace for resource creation
         * @default "default"
         */
        defaultNamespace?: string;
        
        /**
         * Cluster name for resource creation
         */
        clusterName?: string;
      };
    };
  };
}