UNPKG

1.41 kBTypeScriptView Raw
1/// <reference types="webpack-env" />
2import { Parameters, LoaderFunction } from '@storybook/addons';
3import { ClientApiParams, DecoratorFunction, StoryApi, ArgTypesEnhancer } from './types';
4import StoryStore from './story_store';
5export declare const addDecorator: (decorator: DecoratorFunction, deprecationWarning?: boolean) => void;
6export declare const addParameters: (parameters: Parameters, deprecationWarning?: boolean) => void;
7export declare const addLoader: (loader: LoaderFunction, deprecationWarning?: boolean) => void;
8export declare const addArgTypesEnhancer: (enhancer: ArgTypesEnhancer) => void;
9export default class ClientApi {
10 private _storyStore;
11 private _addons;
12 private _decorateStory;
13 private _noStoryModuleAddMethodHotDispose;
14 constructor({ storyStore, decorateStory, noStoryModuleAddMethodHotDispose, }: ClientApiParams);
15 setAddon: (addon: any) => void;
16 addDecorator: (decorator: DecoratorFunction) => void;
17 clearDecorators: () => void;
18 addParameters: (parameters: Parameters) => void;
19 addLoader: (loader: LoaderFunction) => void;
20 addArgTypesEnhancer: (enhancer: ArgTypesEnhancer) => void;
21 storiesOf: <StoryFnReturnType = unknown>(kind: string, m: NodeModule) => StoryApi<StoryFnReturnType>;
22 getStorybook: () => import("./types").GetStorybookKind[];
23 raw: () => import("./types").PublishedStoreItem[];
24 store: () => StoryStore;
25}