import { AgentConfig } from './agentConfig.js';

interface GetRequest {
  path?: string
  query?: object
  headers?: Record<string, string>
  responseType?: string
  raw?: boolean
  token: string
}

interface FeatureFlagConfig {
  token: string
  url: string
  updateInterval?: number
}

interface MigrationServiceConfig {
  enabled: boolean
}

interface ApiConfig {
  url: string
  agent: AgentConfig
}

interface ListWithWarnings {
  data: Record<string, string>[]
  warnings: Warnings
}

interface Warnings {
  noDataAvailable?: string | undefined
}

export type { ApiConfig, FeatureFlagConfig, GetRequest, ListWithWarnings, MigrationServiceConfig, Warnings };
