UNPKG

1.47 kBTypeScriptView Raw
1import { Args, ComponentAnnotations, AnnotatedStoryFn, StoryAnnotations, StrictArgs, DecoratorFunction, LoaderFunction, StoryContext as StoryContext$1, ProjectAnnotations } from '@storybook/types';
2export { ArgTypes, Args, Parameters, StrictArgs } from '@storybook/types';
3import { H as HtmlRenderer } from './types-43cfeb83.js';
4import '@storybook/docs-tools';
5
6/**
7 * Metadata to configure the stories for a component.
8 *
9 * @see [Default export](https://storybook.js.org/docs/formats/component-story-format/#default-export)
10 */
11type Meta<TArgs = Args> = ComponentAnnotations<HtmlRenderer, TArgs>;
12/**
13 * Story function that represents a CSFv2 component example.
14 *
15 * @see [Named Story exports](https://storybook.js.org/docs/formats/component-story-format/#named-story-exports)
16 */
17type StoryFn<TArgs = Args> = AnnotatedStoryFn<HtmlRenderer, TArgs>;
18/**
19 * Story object that represents a CSFv3 component example.
20 *
21 * @see [Named Story exports](https://storybook.js.org/docs/formats/component-story-format/#named-story-exports)
22 */
23type StoryObj<TArgs = Args> = StoryAnnotations<HtmlRenderer, TArgs>;
24type Decorator<TArgs = StrictArgs> = DecoratorFunction<HtmlRenderer, TArgs>;
25type Loader<TArgs = StrictArgs> = LoaderFunction<HtmlRenderer, TArgs>;
26type StoryContext<TArgs = StrictArgs> = StoryContext$1<HtmlRenderer, TArgs>;
27type Preview = ProjectAnnotations<HtmlRenderer>;
28
29export { Decorator, HtmlRenderer, Loader, Meta, Preview, StoryContext, StoryFn, StoryObj };