import dotenv from 'dotenv';

// Carregar variáveis de ambiente do arquivo .env
dotenv.config();

export interface BlingConfig {
  apiUrl: string;
  token: string;
  clientId?: string;
  clientSecret?: string;
  refreshToken?: string;
}

export const config: BlingConfig = {
  apiUrl: process.env.BLING_API_URL || 'https://www.bling.com.br/Api/v3',
  token: process.env.BLING_TOKEN || '',
  clientId: process.env.BLING_CLIENT_ID,
  clientSecret: process.env.BLING_CLIENT_SECRET,
  refreshToken: process.env.BLING_REFRESH_TOKEN
};

// Exportar configuração
export default config; 