1 |
|
2 |
|
3 | import { ClientStoryApi, Loadable } from '@storybook/addons';
|
4 | import './globals';
|
5 | import { IStorybookSection } from './types';
|
6 | import { ReactFramework } from './types-6-0';
|
7 | interface 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 | }
|
15 | export declare const storiesOf: ClientApi['storiesOf'];
|
16 | export declare const configure: ClientApi['configure'];
|
17 | export declare const addDecorator: ClientApi['addDecorator'];
|
18 | export declare type DecoratorFn = Parameters<typeof addDecorator>[0];
|
19 | export declare const addParameters: ClientApi['addParameters'];
|
20 | export declare const clearDecorators: ClientApi['clearDecorators'];
|
21 | export declare const setAddon: ClientApi['setAddon'];
|
22 | export declare const forceReRender: ClientApi['forceReRender'];
|
23 | export declare const getStorybook: ClientApi['getStorybook'];
|
24 | export declare const raw: ClientApi['raw'];
|
25 | export {};
|