import { StoryApi } from '@storybook/addons' ; import { ClientApi } from '@storybook/client-api' ; import { ReactNode } from 'react' ; import Preview from './preview' ; export const preview = new Preview ( ) ; const rawStoriesOf = preview . api ( ) . storiesOf . bind ( preview ) ; export const setAddon = preview . api ( ) . setAddon . bind ( preview ) ; export const addDecorator = preview . api ( ) . addDecorator . bind ( preview ) ; export const addParameters = preview . api ( ) . addParameters . bind ( preview ) ; export const addArgsEnhancer = preview . api ( ) . addArgsEnhancer . bind ( preview ) ; export const clearDecorators = preview . api ( ) . clearDecorators . bind ( preview ) ; export const configure = preview . configure ; export const getStorybook = preview . api ( ) . getStorybook . bind ( preview ) ; export const getStorybookUI = preview . getStorybookUI ; export const raw = preview . api ( ) . raw . bind ( preview ) ; export const storiesOf = ( kind , module ) : StoryApi < ReactNode > => rawStoriesOf ( kind , module ) . addParameters ( { framework : 'react-native' } ) ; export * from './types-6.0' ;