1 |
|
2 |
|
3 |
|
4 | import { StoryApi } from '@storybook/addons';
|
5 | import { ClientApi } from '@storybook/client-api';
|
6 | import { ReactNode } from 'react';
|
7 | export declare const setAddon: ClientApi['setAddon'];
|
8 | export declare const addDecorator: ClientApi['addDecorator'];
|
9 | export declare const addParameters: ClientApi['addParameters'];
|
10 | export declare const clearDecorators: ClientApi['clearDecorators'];
|
11 | export declare const configure: (loadStories: () => void, module: any) => void;
|
12 | export declare const getStorybook: ClientApi['getStorybook'];
|
13 | export declare const getStorybookUI: (params?: Partial<import("./preview").Params>) => {
|
14 | new (props: Readonly<{}>): {
|
15 | render(): JSX.Element;
|
16 | context: any;
|
17 | setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<{}>) => {} | Pick<{}, K>) | Pick<{}, K>, callback?: () => void): void;
|
18 | forceUpdate(callback?: () => void): void;
|
19 | readonly props: Readonly<{}> & Readonly<{
|
20 | children?: ReactNode;
|
21 | }>;
|
22 | state: Readonly<{}>;
|
23 | refs: {
|
24 | [key: string]: import("react").ReactInstance;
|
25 | };
|
26 | componentDidMount?(): void;
|
27 | shouldComponentUpdate?(nextProps: Readonly<{}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
28 | componentWillUnmount?(): void;
|
29 | componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
30 | getSnapshotBeforeUpdate?(prevProps: Readonly<{}>, prevState: Readonly<{}>): any;
|
31 | componentDidUpdate?(prevProps: Readonly<{}>, prevState: Readonly<{}>, snapshot?: any): void;
|
32 | componentWillMount?(): void;
|
33 | UNSAFE_componentWillMount?(): void;
|
34 | componentWillReceiveProps?(nextProps: Readonly<{}>, nextContext: any): void;
|
35 | UNSAFE_componentWillReceiveProps?(nextProps: Readonly<{}>, nextContext: any): void;
|
36 | componentWillUpdate?(nextProps: Readonly<{}>, nextState: Readonly<{}>, nextContext: any): void;
|
37 | UNSAFE_componentWillUpdate?(nextProps: Readonly<{}>, nextState: Readonly<{}>, nextContext: any): void;
|
38 | };
|
39 | new (props: {}, context?: any): {
|
40 | render(): JSX.Element;
|
41 | context: any;
|
42 | setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<{}>) => {} | Pick<{}, K>) | Pick<{}, K>, callback?: () => void): void;
|
43 | forceUpdate(callback?: () => void): void;
|
44 | readonly props: Readonly<{}> & Readonly<{
|
45 | children?: ReactNode;
|
46 | }>;
|
47 | state: Readonly<{}>;
|
48 | refs: {
|
49 | [key: string]: import("react").ReactInstance;
|
50 | };
|
51 | componentDidMount?(): void;
|
52 | shouldComponentUpdate?(nextProps: Readonly<{}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
53 | componentWillUnmount?(): void;
|
54 | componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
55 | getSnapshotBeforeUpdate?(prevProps: Readonly<{}>, prevState: Readonly<{}>): any;
|
56 | componentDidUpdate?(prevProps: Readonly<{}>, prevState: Readonly<{}>, snapshot?: any): void;
|
57 | componentWillMount?(): void;
|
58 | UNSAFE_componentWillMount?(): void;
|
59 | componentWillReceiveProps?(nextProps: Readonly<{}>, nextContext: any): void;
|
60 | UNSAFE_componentWillReceiveProps?(nextProps: Readonly<{}>, nextContext: any): void;
|
61 | componentWillUpdate?(nextProps: Readonly<{}>, nextState: Readonly<{}>, nextContext: any): void;
|
62 | UNSAFE_componentWillUpdate?(nextProps: Readonly<{}>, nextState: Readonly<{}>, nextContext: any): void;
|
63 | };
|
64 | contextType?: import("react").Context<any>;
|
65 | };
|
66 | export declare const raw: ClientApi['raw'];
|
67 | export declare const storiesOf: (kind: string, module: NodeModule) => StoryApi<ReactNode>;
|