// ../core/src/test-utils/browser-mocks.ts
function setupMatchMedia() {
  const win = globalThis.window;
  if (typeof win === "undefined") return;
  Object.defineProperty(win, "matchMedia", {
    writable: true,
    value: (query) => ({
      matches: false,
      media: query,
      onchange: null,
      addListener: () => {
      },
      removeListener: () => {
      },
      addEventListener: () => {
      },
      removeEventListener: () => {
      },
      dispatchEvent: () => true
    })
  });
}
function setupResizeObserver() {
  globalThis.ResizeObserver = class ResizeObserver {
    observe() {
    }
    unobserve() {
    }
    disconnect() {
    }
  };
}
function setupBrowserMocks() {
  setupMatchMedia();
  setupResizeObserver();
}

export { setupBrowserMocks };
