1 | import React, { ReactElement } from 'react';
|
2 | import { Options } from 'react-element-to-jsx-string';
|
3 | import { StoryContext, PartialStoryFn } from '@storybook/csf';
|
4 | import { ReactFramework } from '..';
|
5 | declare type JSXOptions = Options & {
|
6 |
|
7 | skip?: number;
|
8 |
|
9 | showFunctions?: boolean;
|
10 |
|
11 | enableBeautify?: boolean;
|
12 |
|
13 | displayName?: string | Options['displayName'];
|
14 |
|
15 | onBeforeRender?(dom: string): string;
|
16 |
|
17 | transformSource?(dom: string, context?: StoryContext<ReactFramework>): string;
|
18 | };
|
19 |
|
20 | export declare const renderJsx: (code: React.ReactElement, options: JSXOptions) => string;
|
21 | export declare const skipJsxRender: (context: StoryContext<ReactFramework>) => any;
|
22 | export declare const jsxDecorator: (storyFn: PartialStoryFn<ReactFramework>, context: StoryContext<ReactFramework>) => import("../preview/types").StoryFnReactReturnType;
|
23 | export {};
|