async function snapdom(element, options = {}) {
  options = { scale: 1, ...options };
  if (!element) throw new Error("Element cannot be null or undefined");
  return await snapdom.capture(element, options);
}
Main entry point: captures a DOM element and returns an object with export methods.

@param {Element} element - DOM element to capture
@param {Object} [options={}] - Capture options
@returns {Promise<Object>} Object with export methods (toRaw, toImg, toCanvas, etc.)