UNPKG

1.55 kBTypeScriptView Raw
1import { N as NormalizedStoriesSpecifier, S as StoryIndex, P as ProjectAnnotations, a as StorybookConfig$1 } from './index.d-e107ed3d.js';
2import { V as View } from './View-9ba91d66.js';
3import { ReactRenderer } from '@storybook/react';
4export { Theme, darkTheme, theme } from '@storybook/react-native-theming';
5import 'file-system-cache';
6import '@babel/core';
7import 'http';
8import 'react/jsx-runtime';
9import '@storybook/csf';
10import '@storybook/preview-web';
11import '@storybook/channels';
12
13/** Configuration options that are needed at startup, only serialisable values are possible */
14interface ReactNativeOptions {
15 /**
16 * Note that this is for future and play functions are not yet fully supported on native.
17 */
18 playFn?: boolean;
19}
20declare function prepareStories({ storyEntries, options, }: {
21 storyEntries: Array<NormalizedStoriesSpecifier & {
22 req: any;
23 }>;
24 options?: ReactNativeOptions;
25}): {
26 index: StoryIndex;
27 importMap: Record<string, any>;
28};
29declare const getProjectAnnotations: (view: View, annotations: any[]) => () => Promise<ProjectAnnotations<ReactRenderer>>;
30declare function start({ annotations, storyEntries, options, }: {
31 storyEntries: Array<NormalizedStoriesSpecifier & {
32 req: any;
33 }>;
34 annotations: any[];
35 options?: ReactNativeOptions;
36}): View;
37
38interface StorybookConfig {
39 stories: StorybookConfig$1['stories'];
40 addons: string[];
41 reactNative?: ReactNativeOptions;
42}
43
44export { StorybookConfig, getProjectAnnotations, prepareStories, start };