export { g as getRegisteredCss } from './hmr-D5sXuQgK.js';
/**
* Collect all CSS generated during a render pass (for SSR).
*
* Wraps a synchronous render function and captures all CSS that would
* normally be injected into the DOM. Returns both the render result
* and the collected CSS string.
*
* For frameworks where you need the CSS separately from the render pass
* (e.g. TanStack Start's `head()`, Next.js metadata), use the simpler
* `getRegisteredCss()` instead.
*
* @example
* ```ts
* import { collectStyles } from 'typestyles/server';
* import { renderToString } from 'react-dom/server';
*
* const { html, css } = collectStyles(() => renderToString(