function composeStories(csfExports, projectAnnotations) {
  var composedStories = Object(_storybook_store__WEBPACK_IMPORTED_MODULE_0__[/* composeStories */ "a"])(csfExports, projectAnnotations, composeStory);
  return composedStories;
}
Function that will receive a stories import (e.g. `import * as stories from './Button.stories'`)
and optionally projectAnnotations (e.g. `import * from '../.storybook/preview`)
and will return an object containing all the stories passed, but now as a composed component that has all args/parameters/decorators/etc combined and applied to it.


It's very useful for reusing stories in scenarios outside of Storybook like unit testing.

Example:
```jsx
import { render } from '@testing-library/react';
import { composeStories } from '@storybook/react';
import * as stories from './Button.stories';

const { Primary, Secondary } = composeStories(stories);

test('renders primary button with Hello World', () => {
  const { getByText } = render(<Primary>Hello world</Primary>);
  expect(getByText(/Hello world/i)).not.toBeNull();
});
```

@param csfExports - e.g. (import * as stories from './Button.stories')
@param [projectAnnotations] - e.g. (import * as projectAnnotations from '../.storybook/preview') this can be applied automatically if you use `setProjectAnnotations` in your setup files.