// Buffer polyfill for browser environment
// Provides minimal Buffer.from() and Buffer.isBuffer() needed by hash libraries
import { Buffer } from 'buffer/';

if (typeof window !== 'undefined' && !(window as any).Buffer) {
  (window as any).Buffer = Buffer;
}

export { Buffer };
