1 | import { FunctionComponent, ReactNode, ElementType, ComponentProps } from 'react';
|
2 | import { Story as PureStory } from '@storybook/components';
|
3 | import { StoryId, StoryAnnotations, AnyFramework } from '@storybook/csf';
|
4 | import { Story as StoryType } from '@storybook/store';
|
5 | import { DocsContextProps } from './DocsContext';
|
6 | export declare const storyBlockIdFromId: (storyId: string) => string;
|
7 | declare type PureStoryProps = ComponentProps<typeof PureStory>;
|
8 | declare type CommonProps = StoryAnnotations & {
|
9 | height?: string;
|
10 | inline?: boolean;
|
11 | };
|
12 | declare type StoryDefProps = {
|
13 | name: string;
|
14 | children: ReactNode;
|
15 | };
|
16 | declare type StoryRefProps = {
|
17 | id?: string;
|
18 | };
|
19 | declare type StoryImportProps = {
|
20 | name: string;
|
21 | story: ElementType;
|
22 | };
|
23 | export declare type StoryProps = (StoryDefProps | StoryRefProps | StoryImportProps) & CommonProps;
|
24 | export declare const lookupStoryId: (storyName: string, { mdxStoryNameToKey, mdxComponentAnnotations }: DocsContextProps) => string;
|
25 | export declare const getStoryId: (props: StoryProps, context: DocsContextProps) => StoryId;
|
26 | export declare const getStoryProps: <TFramework extends AnyFramework>({ height, inline }: StoryProps, story: StoryType<TFramework>, context: DocsContextProps<TFramework>, onStoryFnCalled: () => void) => PureStoryProps;
|
27 | declare const Story: FunctionComponent<StoryProps>;
|
28 | export { Story };
|