UNPKG

944 BTypeScriptView Raw
1import { ComponentType } from 'react';
2import { Args as DefaultArgs, Annotations, BaseMeta, BaseStory } from '@storybook/addons';
3import { StoryFnReactReturnType } from './types';
4export type { Args, ArgTypes, Parameters, StoryContext } from '@storybook/addons';
5declare type ReactComponent = ComponentType<any>;
6declare type ReactReturnType = StoryFnReactReturnType;
7/**
8 * Metadata to configure the stories for a component.
9 *
10 * @see [Default export](https://storybook.js.org/docs/formats/component-story-format/#default-export)
11 */
12export declare type Meta<Args = DefaultArgs> = BaseMeta<ReactComponent> & Annotations<Args, ReactReturnType>;
13/**
14 * Story function that represents a component example.
15 *
16 * @see [Named Story exports](https://storybook.js.org/docs/formats/component-story-format/#named-story-exports)
17 */
18export declare type Story<Args = DefaultArgs> = BaseStory<Args, ReactReturnType> & Annotations<Args, ReactReturnType>;