import makeWASocket from './Socket/index.js';
import { readFileSync } from 'fs';
import { fileURLToPath } from 'url';
import { dirname, join } from 'path';

// ─── Banner ───────────────────────────────────────────────────────────────────
const __filename = fileURLToPath(import.meta.url);
const __dirname  = dirname(__filename);

let _version = '?.?.?';
try {
    const pkg = JSON.parse(readFileSync(join(__dirname, '..', 'package.json'), 'utf-8'));
    _version = pkg.version ?? _version;
} catch {}

const R  = '\x1b[38;5;213m'; // pink/magenta
const C  = '\x1b[38;5;123m'; // cyan
const Y  = '\x1b[38;5;226m'; // yellow
const G  = '\x1b[38;5;120m'; // green
const DIM= '\x1b[2m';
const B  = '\x1b[1m';
const RST= '\x1b[0m';

const banner = [
    '',
    `${R}${B}  ██████╗ ██╗██╗   ██╗ ██████╗  ██████╗ ${RST}`,
    `${R}${B}  ██╔══██╗██║╚██╗ ██╔╝██╔═══██╗██╔═══██╗${RST}`,
    `${R}${B}  ██████╔╝██║ ╚████╔╝ ██║   ██║██║   ██║${RST}`,
    `${R}${B}  ██╔══██╗██║  ╚██╔╝  ██║   ██║██║   ██║${RST}`,
    `${R}${B}  ██║  ██║██║   ██║   ╚██████╔╝╚██████╔╝${RST}`,
    `${R}${B}  ╚═╝  ╚═╝╚═╝   ╚═╝    ╚═════╝  ╚═════╝ ${RST}`,
    '',
    `  ${C}${B}WhatsApp Web API${RST}  ${DIM}—${RST}  ${Y}v${_version}${RST}`,
    `  ${DIM}Enhanced Baileys fork by${RST} ${G}${B}Riyoo${RST}`,
    `  ${DIM}Node.js ${process.version}  •  ${process.platform}/${process.arch}${RST}`,
    '',
    `  ${DIM}────────────────────────────────────────${RST}`,
    `  ${DIM}⚡ Interactive  ✦ Album  ✦ Newsletter   ${RST}`,
    `  ${DIM}✦ Carousel     ✦ AI/Rich Message       ${RST}`,
    `  ${DIM}────────────────────────────────────────${RST}`,
    '',
].join('\n');

console.log(banner);
// ─────────────────────────────────────────────────────────────────────────────

export * from '../WAProto/index.js';
export * from './Utils/index.js';
export * from './Types/index.js';
export * from './Store/index.js';
export * from './Defaults/index.js';
export * from './WABinary/index.js';
export * from './WAM/index.js';
export * from './WAUSync/index.js';
export { makeWASocket };
export default makeWASocket;
//# sourceMappingURL=index.js.map
