1 | import { ElementType, FunctionComponent } from 'react';
|
2 | import type { Parameters } from '@storybook/api';
|
3 | export declare enum StoryError {
|
4 | NO_STORY = "No component or story to display"
|
5 | }
|
6 | interface CommonProps {
|
7 | title: string;
|
8 | height?: string;
|
9 | id: string;
|
10 | }
|
11 | interface InlineStoryProps extends CommonProps {
|
12 | parameters: Parameters;
|
13 | storyFn: ElementType;
|
14 | }
|
15 | declare type IFrameStoryProps = CommonProps;
|
16 | declare type StoryProps = InlineStoryProps | IFrameStoryProps;
|
17 |
|
18 |
|
19 |
|
20 |
|
21 | declare const Story: FunctionComponent<StoryProps & {
|
22 | inline: boolean;
|
23 | error?: StoryError;
|
24 | }>;
|
25 | export { Story };
|