UNPKG

1.14 kBTypeScriptView Raw
1/// <reference types="webpack-env" />
2/// <reference types="node" />
3import { ClientStoryApi, Loadable } from '@storybook/addons';
4import './globals';
5import { IStorybookSection } from './types';
6import { ReactFramework } from './types-6-0';
7interface ClientApi extends ClientStoryApi<ReactFramework['storyResult']> {
8 setAddon(addon: any): void;
9 configure(loader: Loadable, module: NodeModule): void;
10 getStorybook(): IStorybookSection[];
11 clearDecorators(): void;
12 forceReRender(): void;
13 raw: () => any;
14}
15export declare const storiesOf: ClientApi['storiesOf'];
16export declare const configure: ClientApi['configure'];
17export declare const addDecorator: ClientApi['addDecorator'];
18export declare type DecoratorFn = Parameters<typeof addDecorator>[0];
19export declare const addParameters: ClientApi['addParameters'];
20export declare const clearDecorators: ClientApi['clearDecorators'];
21export declare const setAddon: ClientApi['setAddon'];
22export declare const forceReRender: ClientApi['forceReRender'];
23export declare const getStorybook: ClientApi['getStorybook'];
24export declare const raw: ClientApi['raw'];
25export {};