/** * Energy Intelligence - OPEC Production Resource * * Access OPEC crude oil production data by country with historical trends. */ import type { OilPriceAPI } from "../../client.js"; /** * OPEC production record */ export interface OPECProductionRecord { /** Record ID */ id: string; /** Country name */ country?: string; /** Production volume in barrels per day */ production_bpd: number; /** Unit of measurement */ unit: string; /** Change from previous month */ change?: number; /** Report date */ date: string; /** Month */ month?: string; /** ISO timestamp */ timestamp: string; /** Additional metadata */ metadata?: Record; } /** * Total OPEC production */ export interface TotalOPECProduction { /** Total production in barrels per day */ total_production_bpd: number; /** Change from previous month */ change?: number; /** Unit */ unit: string; /** As of date */ as_of_date: string; } /** * Production by country */ export interface ProductionByCountry { /** Country name */ country: string; /** Production in barrels per day */ production_bpd: number; /** Change from previous month */ change?: number; /** Percentage of total OPEC production */ percentage?: number; /** Date */ date: string; } /** * Historical production data point */ export interface HistoricalProduction { /** Date */ date: string; /** Production in barrels per day */ production_bpd: number; /** Change */ change?: number; } /** * Top producer data */ export interface TopProducer { /** Country name */ country: string; /** Production in barrels per day */ production_bpd: number; /** Percentage of total */ percentage: number; /** Rank */ rank: number; } /** * EI OPEC Production Resource * * Access OPEC crude oil production data and analytics. * * @example * ```typescript * const client = new OilPriceAPI({ apiKey: 'your_key' }); * * // Get total OPEC production * const total = await client.ei.opecProduction.total(); * console.log(`Total OPEC: ${total.total_production_bpd} bpd`); * * // Get top producers * const top = await client.ei.opecProduction.topProducers(); * top.forEach(p => console.log(`${p.rank}. ${p.country}: ${p.production_bpd} bpd`)); * ``` */ export declare class EIOPECProductionResource { private client; constructor(client: OilPriceAPI); /** * List all OPEC production records * * @returns Array of production records */ list(): Promise; /** * Get a specific production record * * @param id - Record ID * @returns Production record */ get(id: string): Promise; /** * Get latest OPEC production data * * @returns Latest production record */ latest(): Promise; /** * Get total OPEC production * * @returns Total OPEC production summary */ total(): Promise; /** * Get production by country * * @returns Array of production by country */ byCountry(): Promise; /** * Get historical production data * * @returns Array of historical production levels */ historical(): Promise; /** * Get top OPEC producers * * @returns Array of top producing countries */ topProducers(): Promise; }